X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=library%2Falloc%2Fsrc%2Fstring.rs;fp=library%2Falloc%2Fsrc%2Fstring.rs;h=7565918851554bd5de13ae1f88ba4ef551fd3119;hb=4f36673e152170951f8b01bcdd6c2da953a65ccc;hp=ca182c8109ec97d3f1ad5dc01353a342e656d0f2;hpb=5dd0e1b7ae7bcddce28658487602e8a077737a3e;p=rust.git 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)]