diff options
| author | bors <bors@rust-lang.org> | 2014-06-11 22:02:00 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-06-11 22:02:00 -0700 |
| commit | fce98e5262f5426e80165ff7195fb1548c861f6b (patch) | |
| tree | 519661e38513341283b555af9359977e97364edb /src | |
| parent | f03863ae7d372e2024bf87f0b9f7058237a918a2 (diff) | |
| parent | a0eca2378640c7f5761e6e56438801ad61f5dfc8 (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.md | 2 |
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: |
