提交 3b396217 编写于 作者: D Donnie Bishop

Remove parentheses in method references

上级 c4b11d19
......@@ -137,10 +137,10 @@ fn connect(&self, sep: &str) -> String {
///
/// [`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")]
......
......@@ -373,10 +373,10 @@ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
///
/// [`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 @@ pub fn as_str(&self) -> &'a str {
///
/// [`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 @@ pub fn as_str(&self) -> &'a str {
/// 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 @@ fn next_back(&mut self) -> Option<&'a str>
/// 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)]
......
......@@ -20,10 +20,10 @@
/// 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> {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册