]> git.lizzy.rs Git - rust.git/commitdiff
Fix deprecated use of ~
authorMichael Reinhard <mcreinhard@users.noreply.github.com>
Tue, 10 Jun 2014 21:44:27 +0000 (14:44 -0700)
committerMichael Reinhard <mcreinhard@users.noreply.github.com>
Tue, 10 Jun 2014 21:44:27 +0000 (14:44 -0700)
src/doc/tutorial.md

index 3b4164ffbc618b367f57595acafff96a5aa8cd40..9e53746743e0889890b0f9b234a35fa764e8837f 100644 (file)
@@ -2459,7 +2459,7 @@ fn draw_all(shapes: &[Box<Drawable>]) {
 }
 ~~~~
 
-In this example, there is no type parameter. Instead, the `~Drawable`
+In this example, there is no type parameter. Instead, the `Box<Drawable>`
 type denotes any owned box value that implements the `Drawable` trait.
 To construct such a value, you use the `as` operator to cast a value
 to an object: