Skip to content

Commit 5eb4e1a

Browse files
committed
~ -> Box in the manual
Fixes #16439
1 parent 6faad3e commit 5eb4e1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/rust.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,7 @@ Likewise, supertrait methods may also be called on trait objects.
15351535
# impl Shape for int { fn area(&self) -> f64 { 0.0 } }
15361536
# impl Circle for int { fn radius(&self) -> f64 { 0.0 } }
15371537
# let mycircle = 0;
1538-
let mycircle: Circle = ~mycircle as ~Circle;
1538+
let mycircle = box mycircle as Box<Circle>;
15391539
let nonsense = mycircle.radius() * mycircle.area();
15401540
~~~~
15411541

0 commit comments

Comments
 (0)