Skip to content

Commit

Permalink
~ -> Box in the manual
Browse files Browse the repository at this point in the history
Fixes #16439
  • Loading branch information
steveklabnik committed Aug 12, 2014
1 parent 6faad3e commit 5eb4e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/rust.md
Expand Up @@ -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();
~~~~

Expand Down

5 comments on commit 5eb4e1a

@bors
Copy link
Contributor

@bors bors commented on 5eb4e1a Aug 14, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from brson
at steveklabnik@5eb4e1a

@bors
Copy link
Contributor

@bors bors commented on 5eb4e1a Aug 14, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging steveklabnik/rust/fix_boxes_in_manual = 5eb4e1a into auto

@bors
Copy link
Contributor

@bors bors commented on 5eb4e1a Aug 14, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

steveklabnik/rust/fix_boxes_in_manual = 5eb4e1a merged ok, testing candidate = 320c35e

@bors
Copy link
Contributor

@bors bors commented on 5eb4e1a Aug 14, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 320c35e

Please sign in to comment.