From 5eb4e1a6590908a2b58dc08b815ecb32868217f2 Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Tue, 12 Aug 2014 07:00:25 -0400 Subject: [PATCH] ~ -> Box in the manual Fixes #16439 --- src/doc/rust.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/rust.md b/src/doc/rust.md index 9061a623c03f0..309bd520c2310 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; let nonsense = mycircle.radius() * mycircle.area(); ~~~~