diff --git a/src/re_bytes.rs b/src/re_bytes.rs index b393dd26d2..459369de93 100644 --- a/src/re_bytes.rs +++ b/src/re_bytes.rs @@ -828,8 +828,8 @@ impl<'t> Captures<'t> { } } - /// Expands all instances of `$name` in `text` to the corresponding capture - /// group `name`, and writes them to the `dst` buffer given. + /// Expands all instances of `$name` in `replacement` to the corresponding + /// capture group `name`, and writes them to the `dst` buffer given. /// /// `name` may be an integer corresponding to the index of the /// capture group (counted by order of opening parenthesis where `0` is the diff --git a/src/re_unicode.rs b/src/re_unicode.rs index 60b0114cb5..7129dfa4c7 100644 --- a/src/re_unicode.rs +++ b/src/re_unicode.rs @@ -979,8 +979,8 @@ impl<'t> Captures<'t> { } } - /// Expands all instances of `$name` in `text` to the corresponding capture - /// group `name`, and writes them to the `dst` buffer given. + /// Expands all instances of `$name` in `replacement` to the corresponding + /// capture group `name`, and writes them to the `dst` buffer given. /// /// `name` may be an integer corresponding to the index of the /// capture group (counted by order of opening parenthesis where `0` is the