]> git.lizzy.rs Git - rust.git/commitdiff
Fix src/libcore/str/mod.rs doc comments
authorBroono Lu <broono@qq.com>
Sat, 21 Dec 2019 10:12:46 +0000 (18:12 +0800)
committerBroono Lu <broono@qq.com>
Sat, 21 Dec 2019 10:12:46 +0000 (18:12 +0800)
src/libcore/str/mod.rs

index 3da992dca30eefcebd46d61f6796cd7f09c9963c..e2cc99813aca55eb2461bb7ed7c18090478f3c4e 100644 (file)
@@ -2325,7 +2325,7 @@ pub fn get_mut<I: SliceIndex<str>>(&mut self, i: I) -> Option<&mut I::Output> {
         i.get_mut(self)
     }
 
-    /// Returns a unchecked subslice of `str`.
+    /// Returns an unchecked subslice of `str`.
     ///
     /// This is the unchecked alternative to indexing the `str`.
     ///