Fix typo in docs of String::leak
.
This commit is contained in:
parent
5a0f454c02
commit
9f0503e4a6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue