about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-06-11 22:02:00 -0700
committerbors <bors@rust-lang.org>2014-06-11 22:02:00 -0700
commitfce98e5262f5426e80165ff7195fb1548c861f6b (patch)
tree519661e38513341283b555af9359977e97364edb /src
parentf03863ae7d372e2024bf87f0b9f7058237a918a2 (diff)
parenta0eca2378640c7f5761e6e56438801ad61f5dfc8 (diff)
auto merge of #14799 : mcreinhard/rust/tilde-fix, r=alexcrichton
Replaced `~Drawable` with `Box<Drawable>` in tutorial
Diffstat (limited to 'src')
-rw-r--r--src/doc/tutorial.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/tutorial.md b/src/doc/tutorial.md
index 802f7cd40bf..9322985a922 100644
--- a/src/doc/tutorial.md
+++ b/src/doc/tutorial.md
@@ -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: