manual: Fix typo.

Also removes redundant newline in code block.
This commit is contained in:
Ruud van Asseldonk 2014-07-07 07:51:34 +02:00
parent d9db7f6137
commit 90b79b7686

View File

@ -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.
~~~~