Rollup merge of #107776 - dbrgn:docs-string-reserve-headings, r=cuviper

Docs: Fix format of headings in String::reserve

It was inconsistent with other doc comments in the same module (and the rest of the rust std docs).
This commit is contained in:
Matthias Krüger 2023-02-08 07:13:28 +01:00 committed by GitHub
commit 5e467f5dfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -928,12 +928,12 @@ impl 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`]
/// boundary, or if they're out of bounds.
///
/// ## Examples
/// # Examples
///
/// ```
/// #![feature(string_extend_from_within)]