We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dabb0c6 commit ee24e99Copy full SHA for ee24e99
src/liballoc/boxed.rs
@@ -365,8 +365,8 @@ impl<T: ?Sized> Box<T> {
365
unsafe { mem::transmute(b) }
366
}
367
368
- /// Consumes and leaks the `Box`, returning a static mutable reference,
369
- /// `&'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`.
370
///
371
/// This function is mainly useful for data that lives for the remainder of
372
/// the program's life. Dropping the returned reference will cause a memory
0 commit comments