@@ -2961,8 +2961,8 @@ impl str {
2961
2961
/// An iterator over substrings of this string slice, separated by
2962
2962
/// characters matched by a pattern.
2963
2963
///
2964
- /// The pattern can be a `&str`, [`char`], or a closure that determines the
2965
- /// split.
2964
+ /// The pattern can be any type that implements the Pattern trait. Notable
2965
+ /// examples are `&str`, [`char`], and closures that determines the split.
2966
2966
///
2967
2967
/// # Iterator behavior
2968
2968
///
@@ -3078,8 +3078,8 @@ impl str {
3078
3078
/// An iterator over substrings of the given string slice, separated by
3079
3079
/// characters matched by a pattern and yielded in reverse order.
3080
3080
///
3081
- /// The pattern can be a `&str`, [`char`], or a closure that determines the
3082
- /// split.
3081
+ /// The pattern can be any type that implements the Pattern trait. Notable
3082
+ /// examples are `&str`, [`char`], and closures that determines the split.
3083
3083
///
3084
3084
/// # Iterator behavior
3085
3085
///
@@ -3128,8 +3128,8 @@ impl str {
3128
3128
/// An iterator over substrings of the given string slice, separated by
3129
3129
/// characters matched by a pattern.
3130
3130
///
3131
- /// The pattern can be a `&str`, [`char`], or a closure that determines the
3132
- /// split.
3131
+ /// The pattern can be any type that implements the Pattern trait. Notable
3132
+ /// examples are `&str`, [`char`], and closures that determines the split.
3133
3133
///
3134
3134
/// Equivalent to [`split`], except that the trailing substring
3135
3135
/// is skipped if empty.
@@ -3175,8 +3175,8 @@ impl str {
3175
3175
/// An iterator over substrings of `self`, separated by characters
3176
3176
/// matched by a pattern and yielded in reverse order.
3177
3177
///
3178
- /// The pattern can be a simple `&str`, [`char`], or a closure that
3179
- /// determines the split.
3178
+ /// The pattern can be any type that implements the Pattern trait. Notable
3179
+ /// examples are `&str`, [`char`], and closures that determines the split.
3180
3180
/// Additional libraries might provide more complex patterns like
3181
3181
/// regular expressions.
3182
3182
///
@@ -3222,8 +3222,8 @@ impl str {
3222
3222
/// If `n` substrings are returned, the last substring (the `n`th substring)
3223
3223
/// will contain the remainder of the string.
3224
3224
///
3225
- /// The pattern can be a `&str`, [`char`], or a closure that determines the
3226
- /// split.
3225
+ /// The pattern can be any type that implements the Pattern trait. Notable
3226
+ /// examples are `&str`, [`char`], and closures that determines the split.
3227
3227
///
3228
3228
/// # Iterator behavior
3229
3229
///
@@ -3275,8 +3275,8 @@ impl str {
3275
3275
/// If `n` substrings are returned, the last substring (the `n`th substring)
3276
3276
/// will contain the remainder of the string.
3277
3277
///
3278
- /// The pattern can be a `&str`, [`char`], or a closure that
3279
- /// determines the split.
3278
+ /// The pattern can be any type that implements the Pattern trait. Notable
3279
+ /// examples are `&str`, [`char`], and closures that determines the split.
3280
3280
///
3281
3281
/// # Iterator behavior
3282
3282
///
@@ -3319,8 +3319,8 @@ impl str {
3319
3319
/// An iterator over the disjoint matches of a pattern within the given string
3320
3320
/// slice.
3321
3321
///
3322
- /// The pattern can be a `&str`, [`char`], or a closure that
3323
- /// determines if a character matches .
3322
+ /// The pattern can be any type that implements the Pattern trait. Notable
3323
+ /// examples are `&str`, [`char`], and closures that determines the split .
3324
3324
///
3325
3325
/// # Iterator behavior
3326
3326
///
0 commit comments