Skip to content

Commit

Permalink
Rollup merge of #107776 - dbrgn:docs-string-reserve-headings, r=cuviper
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
matthiaskrgr authored Feb 8, 2023
2 parents a4a164c + 4f36673 commit 5e467f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/alloc/src/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 5e467f5

Please sign in to comment.