diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2014-08-12 07:00:25 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2014-08-12 07:58:36 -0400 |
| commit | 5eb4e1a6590908a2b58dc08b815ecb32868217f2 (patch) | |
| tree | 3f3f8a55168e03807d4f4bae5314aed1d479de3d /src | |
| parent | 6faad3ec3aba8e9ea7c68331b7c6561890929658 (diff) | |
| download | rust-5eb4e1a6590908a2b58dc08b815ecb32868217f2.tar.gz rust-5eb4e1a6590908a2b58dc08b815ecb32868217f2.zip | |
~ -> Box in the manual
Fixes #16439
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/rust.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/rust.md b/src/doc/rust.md index 9061a623c03..309bd520c23 100644 --- a/src/doc/rust.md +++ b/src/doc/rust.md @@ -1535,7 +1535,7 @@ Likewise, supertrait methods may also be called on trait objects. # impl Shape for int { fn area(&self) -> f64 { 0.0 } } # impl Circle for int { fn radius(&self) -> f64 { 0.0 } } # let mycircle = 0; -let mycircle: Circle = ~mycircle as ~Circle; +let mycircle = box mycircle as Box<Circle>; let nonsense = mycircle.radius() * mycircle.area(); ~~~~ |
