File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1172,6 +1172,7 @@ impl str {
1172
1172
/// The iterator returned will return string slices that are sub-slices of
1173
1173
/// the original string slice, separated by any amount of ASCII whitespace.
1174
1174
///
1175
+ /// This uses the same definition as [`char::is_ascii_whitespace`].
1175
1176
/// To split by Unicode `Whitespace` instead, use [`split_whitespace`].
1176
1177
///
1177
1178
/// [`split_whitespace`]: str::split_whitespace
@@ -1190,7 +1191,8 @@ impl str {
1190
1191
/// assert_eq!(None, iter.next());
1191
1192
/// ```
1192
1193
///
1193
- /// All kinds of ASCII whitespace are considered:
1194
+ /// Various kinds of ASCII whitespace are considered
1195
+ /// (see [`char::is_ascii_whitespace`]):
1194
1196
///
1195
1197
/// ```
1196
1198
/// let mut iter = " Mary had\ta little \n\t lamb".split_ascii_whitespace();
You can’t perform that action at this time.
0 commit comments