about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorStepan Koltsov <stepan.koltsov@gmail.com>2015-02-23 02:25:47 +0300
committerStepan Koltsov <stepan.koltsov@gmail.com>2015-02-23 02:25:47 +0300
commit852eadc2951a2f94d2ede72c0e36033c8b754bd8 (patch)
tree02ce43b97dca514661acba650fc1f193fd906d3e /src/liballoc
parentdcc6ce2c772cb851ac35cbc2ddafcae9bf2fa9fd (diff)
downloadrust-852eadc2951a2f94d2ede72c0e36033c8b754bd8.tar.gz
rust-852eadc2951a2f94d2ede72c0e36033c8b754bd8.zip
boxed: fix typo in doc
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/boxed.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs
index ce889c79601..75260e94327 100644
--- a/src/liballoc/boxed.rs
+++ b/src/liballoc/boxed.rs
@@ -105,9 +105,9 @@ impl<T : ?Sized> Box<T> {
     /// After this function call, pointer is owned by resulting box.
     /// In particular, it means that `Box` destructor calls destructor
     /// of `T` and releases memory. Since the way `Box` allocates and
-    /// releases memory is unspecified, so the only valid pointer to
-    /// pass to this function is the one taken from another `Box` with
-    /// `box::into_raw` function.
+    /// releases memory is unspecified, the only valid pointer to pass
+    /// to this function is the one taken from another `Box` with
+    /// `boxed::into_raw` function.
     ///
     /// Function is unsafe, because improper use of this function may
     /// lead to memory problems like double-free, for example if the