From 9b4937cece93c215b550c5a2454c760ce2e47018 Mon Sep 17 00:00:00 2001 From: Christopher Durham Date: Fri, 28 Jan 2022 09:31:34 -0600 Subject: [PATCH] docs: clarify Captures::len includes non-matching captures --- src/re_unicode.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/re_unicode.rs b/src/re_unicode.rs index e4871a621..41342eacb 100644 --- a/src/re_unicode.rs +++ b/src/re_unicode.rs @@ -989,7 +989,7 @@ impl<'t> Captures<'t> { expand_str(self, replacement, dst) } - /// Returns the number of captured groups. + /// Returns the number of capture groups (even if they didn't match). /// /// This is always at least `1`, since every regex has at least one capture /// group that corresponds to the full match.