about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-02-08 07:13:28 +0100
committerGitHub <noreply@github.com>2023-02-08 07:13:28 +0100
commit5e467f5dfab45487437bb0455d4f61e6b8d3a5ef (patch)
tree4f0e87fc3c2f914fd5ad1723f1e28b282f396b56
parenta4a164cc4548ce6108898a8ed4802f2c67496644 (diff)
parent4f36673e152170951f8b01bcdd6c2da953a65ccc (diff)
downloadrust-5e467f5dfab45487437bb0455d4f61e6b8d3a5ef.tar.gz
rust-5e467f5dfab45487437bb0455d4f61e6b8d3a5ef.zip
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).
-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)]