Skip to content

Commit 9c56d0c

Browse files
authored
Update library/alloc/src/string.rs
1 parent e5269fc commit 9c56d0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/string.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1972,7 +1972,7 @@ impl String {
19721972
/// so the leaked allocation may include unused capacity that is not part
19731973
/// of the returned slice. The advantage of this is that it avoids the potential
19741974
/// reallocation that [`shrink_to_fit`] may perform.
1975-
///
1975+
///
19761976
/// If you want to discard excess capacity, call [`into_boxed_str`],
19771977
/// and then [`Box::leak`] instead.
19781978
///

0 commit comments

Comments
 (0)