We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 441b950 + 9f0503e commit 25e02d6Copy full SHA for 25e02d6
library/alloc/src/string.rs
@@ -1851,7 +1851,7 @@ impl String {
1851
}
1852
1853
/// Consumes and leaks the `String`, returning a mutable reference to the contents,
1854
- /// `&'a mut str`.
+ /// `&'static mut str`.
1855
///
1856
/// This is mainly useful for data that lives for the remainder of
1857
/// the program's life. Dropping the returned reference will cause a memory
0 commit comments