mirror of https://github.com/rust-lang/rust.git
Fix typo in docs of `String::leak`.
This commit is contained in:
parent
5a0f454c02
commit
9f0503e4a6
|
@ -1851,7 +1851,7 @@ impl String {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Consumes and leaks the `String`, returning a mutable reference to the contents,
|
/// 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
|
/// This is mainly useful for data that lives for the remainder of
|
||||||
/// the program's life. Dropping the returned reference will cause a memory
|
/// the program's life. Dropping the returned reference will cause a memory
|
||||||
|
|
Loading…
Reference in New Issue