Skip to content

Commit

Permalink
Update library/alloc/src/string.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhoo authored May 18, 2024
1 parent e5269fc commit 9c56d0c
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 @@ -1972,7 +1972,7 @@ impl String {
/// so the leaked allocation may include unused capacity that is not part
/// of the returned slice. The advantage of this is that it avoids the potential
/// reallocation that [`shrink_to_fit`] may perform.
///
///
/// If you want to discard excess capacity, call [`into_boxed_str`],
/// and then [`Box::leak`] instead.
///
Expand Down

0 comments on commit 9c56d0c

Please sign in to comment.