about summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorDanilo Bargen <mail@dbrgn.ch>2023-02-07 21:32:11 +0100
committerDanilo Bargen <mail@dbrgn.ch>2023-02-07 21:32:28 +0100
commit4f36673e152170951f8b01bcdd6c2da953a65ccc (patch)
tree4051b98cb3891ce173874e8828ae2d1d3e336498 /library/alloc/src
parent5dd0e1b7ae7bcddce28658487602e8a077737a3e (diff)
downloadrust-4f36673e152170951f8b01bcdd6c2da953a65ccc.tar.gz
rust-4f36673e152170951f8b01bcdd6c2da953a65ccc.zip
Docs: Fix format of headings in String::reserve
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/string.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs
index ca182c8109e..75659188515 100644
--- a/library/alloc/src/string.rs
+++ b/library/alloc/src/string.rs
@@ -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)]