about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorNikolai Vazquez <nvazquez1297@gmail.com>2017-10-06 17:39:38 -0400
committerNikolai Vazquez <nvazquez1297@gmail.com>2017-10-06 17:39:38 -0400
commit5af88ee9969320ef900190e1e6a8247d800b7fe6 (patch)
tree453e55377341ae6edf128c4d687e7c5b136587c0 /src/liballoc
parent5ce5b2fe76802385e2974bdec8d82117fb55d0ea (diff)
downloadrust-5af88ee9969320ef900190e1e6a8247d800b7fe6.tar.gz
rust-5af88ee9969320ef900190e1e6a8247d800b7fe6.zip
Add missing word in Box::from_unique docs
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/boxed.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs
index 53d643e7288..2c14dfb1dd0 100644
--- a/src/liballoc/boxed.rs
+++ b/src/liballoc/boxed.rs
@@ -274,8 +274,8 @@ impl<T: ?Sized> Box<T> {
 
     /// Constructs a `Box` from a `Unique<T>` pointer.
     ///
-    /// After calling this function, the memory is owned by a `Box` and `T` then
-    /// be destroyed and released upon drop.
+    /// After calling this function, the memory is owned by a `Box` and `T` can
+    /// then be destroyed and released upon drop.
     ///
     /// # Safety
     ///