diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs index 209abfac6bbf9..c436adf70067a 100644 --- a/library/alloc/src/string.rs +++ b/library/alloc/src/string.rs @@ -1851,7 +1851,7 @@ impl String { } /// Consumes and leaks the `String`, returning a mutable reference to the contents, - /// `&'a mut str`. + /// `&'static mut str`. /// /// This is mainly useful for data that lives for the remainder of /// the program's life. Dropping the returned reference will cause a memory