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:
Matthias Krüger 2022-10-23 08:14:34 +02:00 committed by GitHub
commit 25e02d6efc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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