From: Tommaso Fontana Date: Mon, 25 Oct 2021 12:13:54 +0000 (+0200) Subject: Fixed missing double quote in the patch (slice.swap) X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=9b28ab40acd55b5d26b6fcdae75873ea321f696d;p=rust.git Fixed missing double quote in the patch (slice.swap) --- diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs index 92b1e1d75c6..a6370a4513b 100644 --- a/library/core/src/slice/mod.rs +++ b/library/core/src/slice/mod.rs @@ -553,7 +553,7 @@ pub const fn as_mut_ptr_range(&mut self) -> Range<*mut T> { /// # Examples /// /// ``` - /// let mut v = ["a", "b", "c", "d", "e]; + /// let mut v = ["a", "b", "c", "d", "e"]; /// v.swap(2, 4); /// assert!(v == ["a", "b", "e", "d", "c"]); /// ```