Skip to content

Commit 931e3c7

Browse files
committed
Fix docs referring to a wrong variable
The variable name was changed but the documentation wasn't, making it confusing.
1 parent b9cb447 commit 931e3c7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/re_bytes.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -828,8 +828,8 @@ impl<'t> Captures<'t> {
828828
}
829829
}
830830

831-
/// Expands all instances of `$name` in `text` to the corresponding capture
832-
/// group `name`, and writes them to the `dst` buffer given.
831+
/// Expands all instances of `$name` in `replacement` to the corresponding
832+
/// capture group `name`, and writes them to the `dst` buffer given.
833833
///
834834
/// `name` may be an integer corresponding to the index of the
835835
/// capture group (counted by order of opening parenthesis where `0` is the

src/re_unicode.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -979,8 +979,8 @@ impl<'t> Captures<'t> {
979979
}
980980
}
981981

982-
/// Expands all instances of `$name` in `text` to the corresponding capture
983-
/// group `name`, and writes them to the `dst` buffer given.
982+
/// Expands all instances of `$name` in `replacement` to the corresponding
983+
/// capture group `name`, and writes them to the `dst` buffer given.
984984
///
985985
/// `name` may be an integer corresponding to the index of the
986986
/// capture group (counted by order of opening parenthesis where `0` is the

0 commit comments

Comments
 (0)