diff --git a/library/core/src/str/mod.rs b/library/core/src/str/mod.rs index f4e8529a58f6f..5658e28fbff11 100644 --- a/library/core/src/str/mod.rs +++ b/library/core/src/str/mod.rs @@ -843,8 +843,8 @@ impl str { /// a line feed (`\r\n`). /// /// The final line ending is optional. A string that ends with a final line - /// ending (carriage return or line feed) will return the same lines as an - /// otherwise identical string without a final line ending. + /// ending will return the same lines as an otherwise identical string + /// without a final line ending. /// /// # Examples ///