From a0eca2378640c7f5761e6e56438801ad61f5dfc8 Mon Sep 17 00:00:00 2001 From: Michael Reinhard Date: Tue, 10 Jun 2014 14:44:27 -0700 Subject: [PATCH] Fix deprecated use of ~ --- src/doc/tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/tutorial.md b/src/doc/tutorial.md index 3b4164ffbc618..9e53746743e08 100644 --- a/src/doc/tutorial.md +++ b/src/doc/tutorial.md @@ -2459,7 +2459,7 @@ fn draw_all(shapes: &[Box]) { } ~~~~ -In this example, there is no type parameter. Instead, the `~Drawable` +In this example, there is no type parameter. Instead, the `Box` 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: