Docs: Fix format of headings in String::reserve

This commit is contained in:
Danilo Bargen 2023-02-07 21:32:11 +01:00
parent 5dd0e1b7ae
commit 4f36673e15

View File

@ -928,12 +928,12 @@ impl String {
/// Copies elements from `src` range to the end of the string. /// Copies elements from `src` range to the end of the string.
/// ///
/// ## Panics /// # Panics
/// ///
/// Panics if the starting point or end point do not lie on a [`char`] /// Panics if the starting point or end point do not lie on a [`char`]
/// boundary, or if they're out of bounds. /// boundary, or if they're out of bounds.
/// ///
/// ## Examples /// # Examples
/// ///
/// ``` /// ```
/// #![feature(string_extend_from_within)] /// #![feature(string_extend_from_within)]