about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorMazdak <twingoow@gmail.com>2017-11-09 23:27:58 +0100
committerMazdak <twingoow@gmail.com>2017-11-09 23:27:58 +0100
commitee24e992b640d09d31d34938dbe7131db9cb18a9 (patch)
treeefc017270dc47d78bd41e164e369a58f1a3feffe /src/liballoc
parentdabb0c6605d2afb96892f7a3dad64b13c934de74 (diff)
downloadrust-ee24e992b640d09d31d34938dbe7131db9cb18a9.tar.gz
rust-ee24e992b640d09d31d34938dbe7131db9cb18a9.zip
Box::leak - updated documentation
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 58e5c4d66e4..49f5f68fa77 100644
--- a/src/liballoc/boxed.rs
+++ b/src/liballoc/boxed.rs
@@ -365,8 +365,8 @@ impl<T: ?Sized> Box<T> {
         unsafe { mem::transmute(b) }
     }
 
-    /// Consumes and leaks the `Box`, returning a static mutable reference,
-    /// `&'static mut T`.
+    /// Consumes and leaks the `Box`, returning a mutable reference,
+    /// `&'a mut T`. Here, the lifetime `'a` may be chosen to be `'static`.
     ///
     /// This function is mainly useful for data that lives for the remainder of
     /// the program's life. Dropping the returned reference will cause a memory