Skip to content

Commit 5e467f5

Browse files
authored
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).
2 parents a4a164c + 4f36673 commit 5e467f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/alloc/src/string.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -928,12 +928,12 @@ impl String {
928928

929929
/// Copies elements from `src` range to the end of the string.
930930
///
931-
/// ## Panics
931+
/// # Panics
932932
///
933933
/// Panics if the starting point or end point do not lie on a [`char`]
934934
/// boundary, or if they're out of bounds.
935935
///
936-
/// ## Examples
936+
/// # Examples
937937
///
938938
/// ```
939939
/// #![feature(string_extend_from_within)]

0 commit comments

Comments
 (0)