Skip to content

Commit 7dfa895

Browse files
committed
Auto merge of rust-lang#335 - reddraggone9:docs-rename, r=BurntSushi
Update docs to reflect `at` -> `get` rename I noticed this while perusing the documentation and ran ```sh rg '`at`' ``` in the repo to find these four instances. Feels kinda meta.
2 parents e2904f8 + 799d333 commit 7dfa895

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: src/re_bytes.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ impl Regex {
246246
///
247247
/// Here we name the capture groups, which we can access with the `name`
248248
/// method or the `Index` notation with a `&str`. Note that the named
249-
/// capture groups are still accessible with `at` or the `Index` notation
249+
/// capture groups are still accessible with `get` or the `Index` notation
250250
/// with a `usize`.
251251
///
252252
/// The `0`th capture group is always unnamed, so it must always be
@@ -763,7 +763,7 @@ impl<'r> Iterator for CaptureNames<'r> {
763763
/// index corresponds to the next capture group in the regex. If a capture
764764
/// group is named, then the matched byte string is *also* available via the
765765
/// `name` method. (Note that the 0th capture is always unnamed and so must be
766-
/// accessed with the `at` method.)
766+
/// accessed with the `get` method.)
767767
///
768768
/// Positions returned from a capture group are always byte indices.
769769
///

Diff for: src/re_unicode.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ impl Regex {
321321
///
322322
/// Here we name the capture groups, which we can access with the `name`
323323
/// method or the `Index` notation with a `&str`. Note that the named
324-
/// capture groups are still accessible with `at` or the `Index` notation
324+
/// capture groups are still accessible with `get` or the `Index` notation
325325
/// with a `usize`.
326326
///
327327
/// The `0`th capture group is always unnamed, so it must always be
@@ -901,7 +901,7 @@ impl<'n> Iterator for NamedGroupsIter<'n> {
901901
/// index corresponds to the next capture group in the regex. If a capture
902902
/// group is named, then the matched string is *also* available via the `name`
903903
/// method. (Note that the 0th capture is always unnamed and so must be
904-
/// accessed with the `at` method.)
904+
/// accessed with the `get` method.)
905905
///
906906
/// Positions returned from a capture group are always byte indices.
907907
///

0 commit comments

Comments
 (0)