Skip to content

Commit 81c8f6b

Browse files
committed
Auto merge of rust-lang#427 - nbaksalyar:fix-docs, r=BurntSushi
Fix docs referring to a wrong variable The [variable name was changed](rust-lang@ebd26e9#diff-e76c21ee73748c8e0f6c9a32c9467a30L965) but the documentation wasn't, making it confusing.
2 parents b9cb447 + 931e3c7 commit 81c8f6b

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)