Fix typo in docs of `String::leak`.

This commit is contained in:
Finn Bear 2022-10-22 12:26:47 -07:00
parent 5a0f454c02
commit 9f0503e4a6
1 changed files with 1 additions and 1 deletions

View File

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