]> git.lizzy.rs Git - rust.git/commitdiff
Fixed missing double quote in the patch (slice.swap)
authorTommaso Fontana <zommy21@hotmail.it>
Mon, 25 Oct 2021 12:13:54 +0000 (14:13 +0200)
committerGitHub <noreply@github.com>
Mon, 25 Oct 2021 12:13:54 +0000 (14:13 +0200)
library/core/src/slice/mod.rs

index 92b1e1d75c660123021a44bda8d000fa48f6ee2f..a6370a4513bb5a8138fc142751feb7f5e6fbf92c 100644 (file)
@@ -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"]);
     /// ```