File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -877,7 +877,7 @@ impl CaptureLocations {
877
877
self . 0 . pos ( i)
878
878
}
879
879
880
- /// Returns the total number of capturing groups.
880
+ /// Returns the total number of capture groups (even if they didn't match) .
881
881
///
882
882
/// This is always at least `1` since every regex has at least `1`
883
883
/// capturing group that corresponds to the entire match.
@@ -979,7 +979,7 @@ impl<'t> Captures<'t> {
979
979
expand_bytes ( self , replacement, dst)
980
980
}
981
981
982
- /// Returns the number of captured groups.
982
+ /// Returns the total number of capture groups (even if they didn't match) .
983
983
///
984
984
/// This is always at least `1`, since every regex has at least one capture
985
985
/// group that corresponds to the full match.
Original file line number Diff line number Diff line change @@ -887,7 +887,7 @@ impl CaptureLocations {
887
887
self . 0 . pos ( i)
888
888
}
889
889
890
- /// Returns the total number of capturing groups.
890
+ /// Returns the total number of capture groups (even if they didn't match) .
891
891
///
892
892
/// This is always at least `1` since every regex has at least `1`
893
893
/// capturing group that corresponds to the entire match.
@@ -989,7 +989,7 @@ impl<'t> Captures<'t> {
989
989
expand_str ( self , replacement, dst)
990
990
}
991
991
992
- /// Returns the number of captured groups.
992
+ /// Returns the total number of capture groups (even if they didn't match) .
993
993
///
994
994
/// This is always at least `1`, since every regex has at least one capture
995
995
/// group that corresponds to the full match.
You can’t perform that action at this time.
0 commit comments