mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
update language from "no lines" to "empty iterator"
This commit is contained in:
@@ -1251,7 +1251,7 @@ pub fn split_ascii_whitespace(&self) -> SplitAsciiWhitespace<'_> {
|
||||
/// ending will return the same lines as an otherwise identical string
|
||||
/// without a final line ending.
|
||||
///
|
||||
/// An empty string returns no lines.
|
||||
/// An empty string returns an empty iterator.
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
@@ -1284,7 +1284,7 @@ pub fn split_ascii_whitespace(&self) -> SplitAsciiWhitespace<'_> {
|
||||
/// assert_eq!(None, lines.next());
|
||||
/// ```
|
||||
///
|
||||
/// An empty string returns no lines:
|
||||
/// An empty string returns an empty iterator:
|
||||
///
|
||||
/// ```
|
||||
/// let text = "";
|
||||
|
||||
Reference in New Issue
Block a user