Skip to content

Commit

Permalink
auto merge of #15496 : ruud-v-a/rust/patch-1, r=huonw
Browse files Browse the repository at this point in the history
Also removes redundant newline in code block.
  • Loading branch information
bors committed Jul 7, 2014
2 parents f78d2f5 + 90b79b7 commit 4f120e6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/doc/rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -3889,12 +3889,11 @@ by the prefix operator `box`. When the standard library is in use, the type of a
An example of an owned box type and value:

~~~~
let x: Box<int> = box 10;
~~~~

Owned box values exist in 1:1 correspondence with their heap allocation
copying an owned box value makes a shallow copy of the pointer
Owned box values exist in 1:1 correspondence with their heap allocation,
copying an owned box value makes a shallow copy of the pointer.
Rust will consider a shallow copy of an owned box to move ownership of the value. After a value has been moved, the source location cannot be used unless it is reinitialized.

~~~~
Expand Down

0 comments on commit 4f120e6

Please sign in to comment.