From 90b79b768653516a3594dc3d13f4945436d143b3 Mon Sep 17 00:00:00 2001 From: Ruud van Asseldonk Date: Mon, 7 Jul 2014 07:51:34 +0200 Subject: [PATCH] manual: Fix typo. Also removes redundant newline in code block. --- src/doc/rust.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/doc/rust.md b/src/doc/rust.md index e149920ab35..f09214d1a6f 100644 --- a/src/doc/rust.md +++ b/src/doc/rust.md @@ -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 = 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. ~~~~