Fix deprecated use of ~

This commit is contained in:
Michael Reinhard 2014-06-10 14:44:27 -07:00
parent 9bb8f88d3a
commit a0eca23786

View 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: