about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2020-08-21 20:28:57 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2020-08-21 20:28:57 +0200
commita3b45f3e54b9497af864f8fa3cb8a334c5de02b4 (patch)
tree0bb29303a054a76a5e31c96d493f2888fef65910
parent1a22a0ff93d63f738151f096434e732466b4a42e (diff)
downloadrust-a3b45f3e54b9497af864f8fa3cb8a334c5de02b4.tar.gz
rust-a3b45f3e54b9497af864f8fa3cb8a334c5de02b4.zip
Convert links to intra-doc links format
-rw-r--r--library/core/src/str/pattern.rs13
1 files changed, 2 insertions, 11 deletions
diff --git a/library/core/src/str/pattern.rs b/library/core/src/str/pattern.rs
index 14f1f293d40..0e53d72b393 100644
--- a/library/core/src/str/pattern.rs
+++ b/library/core/src/str/pattern.rs
@@ -12,7 +12,7 @@
 //! # Examples
 //!
 //! [`Pattern`] is [implemented][pattern-impls] in the stable API for
-//! [`&str`], [`char`], slices of [`char`], and functions and closures
+//! [`&str`][`str`], [`char`], slices of [`char`], and functions and closures
 //! implementing `FnMut(char) -> bool`.
 //!
 //! ```
@@ -28,13 +28,6 @@
 //! assert_eq!(s.find(|c: char| c.is_ascii_punctuation()), Some(35));
 //! ```
 //!
-//! [`&str`]: ../../../std/primitive.str.html
-//! [`char`]: ../../../std/primitive.char.html
-//! [`str`]: ../../../std/primitive.str.html
-//! [`DoubleEndedSearcher`]: trait.DoubleEndedSearcher.html
-//! [`Pattern`]: trait.Pattern.html
-//! [`ReverseSearcher`]: trait.ReverseSearcher.html
-//! [`Searcher`]: trait.Searcher.html
 //! [pattern-impls]: trait.Pattern.html#implementors
 
 #![unstable(
@@ -75,6 +68,7 @@ use crate::slice::memchr;
 /// | `&String`                | is substring                              |
 ///
 /// # Examples
+///
 /// ```
 /// // &str
 /// assert_eq!("abaaa".find("ba"), Some(1));
@@ -94,9 +88,6 @@ use crate::slice::memchr;
 /// assert_eq!("abcdef_z".find(|ch| ch > 'd' && ch < 'y'), Some(4));
 /// assert_eq!("abcddd_z".find(|ch| ch > 'd' && ch < 'y'), None);
 /// ```
-///
-/// [`str::find`]: ../../../std/primitive.str.html#method.find
-/// [`str::contains`]: ../../../std/primitive.str.html#method.contains
 pub trait Pattern<'a>: Sized {
     /// Associated searcher for this pattern
     type Searcher: Searcher<'a>;