about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJacob Greenfield <jacob@jacobgreenfield.me>2020-03-30 15:48:52 -0400
committerJacob Greenfield <jacob@jacobgreenfield.me>2020-03-30 15:48:52 -0400
commitfcab1f947bb760910815685ba75b4c7a85a79f89 (patch)
treeaa8b4e3e2126135b1b87cb4aa94fcbfb43c41d47
parent9a12971da5c08f9a95d54bdaef5cd83698ed4509 (diff)
downloadrust-fcab1f947bb760910815685ba75b4c7a85a79f89.tar.gz
rust-fcab1f947bb760910815685ba75b4c7a85a79f89.zip
Fix incorrect documentation for `str::{split_at, split_at_mut}`
-rw-r--r--src/libcore/str/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs
index 013ca182c13..2b08f7f7079 100644
--- a/src/libcore/str/mod.rs
+++ b/src/libcore/str/mod.rs
@@ -2642,7 +2642,7 @@ impl str {
     /// # Panics
     ///
     /// Panics if `mid` is not on a UTF-8 code point boundary, or if it is
-    /// beyond the last code point of the string slice.
+    /// past the end of the last code point of the string slice.
     ///
     /// # Examples
     ///
@@ -2683,7 +2683,7 @@ impl str {
     /// # Panics
     ///
     /// Panics if `mid` is not on a UTF-8 code point boundary, or if it is
-    /// beyond the last code point of the string slice.
+    /// past the end of the last code point of the string slice.
     ///
     /// # Examples
     ///