Skip to content

Commit

Permalink
Fix docs referring to a wrong variable
Browse files Browse the repository at this point in the history
The variable name was changed but the documentation wasn't,
making it confusing.
  • Loading branch information
nbaksalyar committed Dec 7, 2017
1 parent b9cb447 commit 931e3c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/re_bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/re_unicode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 931e3c7

Please sign in to comment.