From: Danilo Bargen Date: Tue, 7 Feb 2023 20:32:11 +0000 (+0100) Subject: Docs: Fix format of headings in String::reserve X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=4f36673e152170951f8b01bcdd6c2da953a65ccc;p=rust.git Docs: Fix format of headings in String::reserve --- 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 @@ pub fn push_str(&mut self, string: &str) { /// 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)]