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 @@ -1173,6 +1173,7 @@ impl str {
1173
1173
/// The iterator returned will return string slices that are sub-slices of
1174
1174
/// the original string slice, separated by any amount of ASCII whitespace.
1175
1175
///
1176
+ /// This uses the same definition as [`char::is_ascii_whitespace`].
1176
1177
/// To split by Unicode `Whitespace` instead, use [`split_whitespace`].
1177
1178
///
1178
1179
/// [`split_whitespace`]: str::split_whitespace
@@ -1191,7 +1192,8 @@ impl str {
1191
1192
/// assert_eq!(None, iter.next());
1192
1193
/// ```
1193
1194
///
1194
- /// All kinds of ASCII whitespace are considered:
1195
+ /// Various kinds of ASCII whitespace are considered
1196
+ /// (see [`char::is_ascii_whitespace`]):
1195
1197
///
1196
1198
/// ```
1197
1199
/// 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