]> git.lizzy.rs Git - rust.git/commitdiff
Tweak comment wording
authorScott McMurray <scottmcm@users.noreply.github.com>
Sun, 21 May 2017 05:00:03 +0000 (22:00 -0700)
committerScott McMurray <scottmcm@users.noreply.github.com>
Sun, 21 May 2017 08:55:43 +0000 (01:55 -0700)
src/libcollections/slice.rs

index dd3259f0cb4d7d44c758d4d5ff77a91212aa33ec..668f8cf80cfb3d459d260a8f52bb477574642de4 100644 (file)
@@ -1337,8 +1337,8 @@ pub fn sort_unstable_by_key<B, F>(&mut self, f: F)
         core_slice::SliceExt::sort_unstable_by_key(self, f);
     }
 
-    /// Permutes the slice in-place such that `self[mid..]` move to the
-    /// beginning of the slice while `self[..mid]` move to the end of the
+    /// Permutes the slice in-place such that `self[mid..]` moves to the
+    /// beginning of the slice while `self[..mid]` moves to the end of the
     /// slice.  Equivalently, rotates the slice `mid` places to the left
     /// or `k = self.len() - mid` places to the right.
     ///