Skip to content

Commit e628b05

Browse files
committed
update language from "no lines" to "empty iterator"
1 parent 4996edc commit e628b05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/str/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,7 @@ impl str {
12511251
/// ending will return the same lines as an otherwise identical string
12521252
/// without a final line ending.
12531253
///
1254-
/// An empty string returns no lines.
1254+
/// An empty string returns an empty iterator.
12551255
///
12561256
/// # Examples
12571257
///
@@ -1284,7 +1284,7 @@ impl str {
12841284
/// assert_eq!(None, lines.next());
12851285
/// ```
12861286
///
1287-
/// An empty string returns no lines:
1287+
/// An empty string returns an empty iterator:
12881288
///
12891289
/// ```
12901290
/// let text = "";

0 commit comments

Comments
 (0)