Skip to content

Commit

Permalink
Fix typo in docs of String::leak.
Browse files Browse the repository at this point in the history
  • Loading branch information
finnbear committed Oct 22, 2022
1 parent 5a0f454 commit 9f0503e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/alloc/src/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9f0503e

Please sign in to comment.