Skip to content

Commit 4f36673

Browse files
committed
Docs: Fix format of headings in String::reserve
1 parent 5dd0e1b commit 4f36673

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)