Rollup merge of #103412 - finnbear:fix_docs_typo_string_leak, r=thomcc
Fix typo in docs of `String::leak`. I introduced a typo in #103280, this PR fixes it. See https://github.com/rust-lang/rust/pull/103280#discussion_r1002538265
This commit is contained in:
commit
25e02d6efc
@ -1851,7 +1851,7 @@ pub fn into_boxed_str(self) -> Box<str> {
|
||||
}
|
||||
|
||||
/// 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
|
||||
|
Loading…
Reference in New Issue
Block a user