diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs index 59055afd1637..39395426703b 100644 --- a/library/alloc/src/string.rs +++ b/library/alloc/src/string.rs @@ -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. ///