Remove parentheses in method references

This commit is contained in:
Donnie Bishop 2017-03-30 18:33:23 -04:00
parent c4b11d19b8
commit 3b396217b5
3 changed files with 12 additions and 12 deletions

View File

@ -137,10 +137,10 @@ impl<S: Borrow<str>> SliceConcatExt<str> for [S] {
///
/// [`u16`]: ../../std/primitive.u16.html
///
/// This struct is created by the [`encode_utf16()`] method on [`str`].
/// This struct is created by the [`encode_utf16`] method on [`str`].
/// See its documentation for more.
///
/// [`encode_utf16()`]: ../../std/primitive.str.html#method.encode_utf16
/// [`encode_utf16`]: ../../std/primitive.str.html#method.encode_utf16
/// [`str`]: ../../std/primitive.str.html
#[derive(Clone)]
#[stable(feature = "encode_utf16", since = "1.8.0")]

View File

@ -373,10 +373,10 @@ Section: Iterators
///
/// [`char`]: ../../std/primitive.char.html
///
/// This struct is created by the [`chars()`] method on [`str`].
/// This struct is created by the [`chars`] method on [`str`].
/// See its documentation for more.
///
/// [`chars()`]: ../../std/primitive.str.html#method.chars
/// [`chars`]: ../../std/primitive.str.html#method.chars
/// [`str`]: ../../std/primitive.str.html
#[derive(Clone, Debug)]
#[stable(feature = "rust1", since = "1.0.0")]
@ -561,10 +561,10 @@ impl<'a> Chars<'a> {
///
/// [`char`]: ../../std/primitive.char.html
///
/// This struct is created by the [`char_indices()`] method on [`str`].
/// This struct is created by the [`char_indices`] method on [`str`].
/// See its documentation for more.
///
/// [`char_indices()`]: ../../std/primitive.str.html#method.char_indices
/// [`char_indices`]: ../../std/primitive.str.html#method.char_indices
/// [`str`]: ../../std/primitive.str.html
#[derive(Clone, Debug)]
#[stable(feature = "rust1", since = "1.0.0")]
@ -639,10 +639,10 @@ impl<'a> CharIndices<'a> {
/// An iterator over the bytes of a string slice.
///
/// This struct is created by the [`bytes()`] method on [`str`].
/// This struct is created by the [`bytes`] method on [`str`].
/// See its documentation for more.
///
/// [`bytes()`]: ../../std/primitive.str.html#method.bytes
/// [`bytes`]: ../../std/primitive.str.html#method.bytes
/// [`str`]: ../../std/primitive.str.html
#[stable(feature = "rust1", since = "1.0.0")]
#[derive(Clone, Debug)]
@ -1176,10 +1176,10 @@ generate_pattern_iterators! {
/// An iterator over the lines of a string, as string slices.
///
/// This struct is created with the [`lines()`] method on [`str`].
/// This struct is created with the [`lines`] method on [`str`].
/// See its documentation for more.
///
/// [`lines()`]: ../../std/primitive.str.html#method.lines
/// [`lines`]: ../../std/primitive.str.html#method.lines
/// [`str`]: ../../std/primitive.str.html
#[stable(feature = "rust1", since = "1.0.0")]
#[derive(Clone, Debug)]

View File

@ -20,10 +20,10 @@ use core::str::Split;
/// An iterator over the non-whitespace substrings of a string,
/// separated by any amount of whitespace.
///
/// This struct is created by the [`split_whitespace()`] method on [`str`].
/// This struct is created by the [`split_whitespace`] method on [`str`].
/// See its documentation for more.
///
/// [`split_whitespace()`]: ../../std/primitive.str.html#method.split_whitespace
/// [`split_whitespace`]: ../../std/primitive.str.html#method.split_whitespace
/// [`str`]: ../../std/primitive.str.html
#[stable(feature = "split_whitespace", since = "1.1.0")]
pub struct SplitWhitespace<'a> {