Skip to content

Commit fee5fae

Browse files
committed
fix up doc nits
1 parent 21485b4 commit fee5fae

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/re.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -980,10 +980,7 @@ impl<'t> Captures<'t> {
980980
///
981981
/// The text can't outlive the `Captures` object if this method is
982982
/// used, because of how `Index` is defined (normally `a[i]` is part
983-
/// of `a` and can't outlive it); to do that, use [`at()`][]
984-
/// instead.
985-
///
986-
/// [`at()`]: #method.at
983+
/// of `a` and can't outlive it); to do that, use `at()` instead.
987984
///
988985
/// # Panics
989986
/// If there is no group at the given index.
@@ -1004,10 +1001,7 @@ impl<'t> Index<usize> for Captures<'t> {
10041001
///
10051002
/// The text can't outlive the `Captures` object if this method is
10061003
/// used, because of how `Index` is defined (normally `a[i]` is part
1007-
/// of `a` and can't outlive it); to do that, use [`name()`][]
1008-
/// instead.
1009-
///
1010-
/// [`name()`]: #method.name
1004+
/// of `a` and can't outlive it); to do that, use `name` instead.
10111005
///
10121006
/// # Panics
10131007
/// If there is no group named by the given value.

0 commit comments

Comments
 (0)