Skip to content

Commit 28364ce

Browse files
committed
Auto merge of #327 - heycam:doc-at, r=BurntSushi
Update comment to refer to get() instead of the previously removed at().
2 parents e3c845c + 679fe35 commit 28364ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/re_bytes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ impl<'c, 't> fmt::Debug for CapturesDebug<'c, 't> {
878878
///
879879
/// The text can't outlive the `Captures` object if this method is
880880
/// used, because of how `Index` is defined (normally `a[i]` is part
881-
/// of `a` and can't outlive it); to do that, use `at()` instead.
881+
/// of `a` and can't outlive it); to do that, use `get()` instead.
882882
///
883883
/// # Panics
884884
///

src/re_unicode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ impl<'c, 't> fmt::Debug for CapturesDebug<'c, 't> {
10011001
///
10021002
/// The text can't outlive the `Captures` object if this method is
10031003
/// used, because of how `Index` is defined (normally `a[i]` is part
1004-
/// of `a` and can't outlive it); to do that, use `at()` instead.
1004+
/// of `a` and can't outlive it); to do that, use `get()` instead.
10051005
///
10061006
/// # Panics
10071007
///

0 commit comments

Comments
 (0)