about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorDonnie Bishop <donnie.a.bishop@gmail.com>2017-03-30 18:33:23 -0400
committerDonnie Bishop <donnie.a.bishop@gmail.com>2017-03-30 18:33:23 -0400
commit3b396217b5b52cf87769263bf0b842c56471b54f (patch)
treec007459591d1abb88f2c9390149e7d1eaf0e25d7 /src
parentc4b11d19b85f970b759f14e6dd864512d8c41f66 (diff)
downloadrust-3b396217b5b52cf87769263bf0b842c56471b54f.tar.gz
rust-3b396217b5b52cf87769263bf0b842c56471b54f.zip
Remove parentheses in method references
Diffstat (limited to 'src')
-rw-r--r--src/libcollections/str.rs4
-rw-r--r--src/libcore/str/mod.rs16
-rw-r--r--src/libstd_unicode/u_str.rs4
3 files changed, 12 insertions, 12 deletions
diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs
index aee6861a09f..36a1f1eb2b7 100644
--- a/src/libcollections/str.rs
+++ b/src/libcollections/str.rs
@@ -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")]
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs
index 11d52e3c15b..56f42349b20 100644
--- a/src/libcore/str/mod.rs
+++ b/src/libcore/str/mod.rs
@@ -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)]
diff --git a/src/libstd_unicode/u_str.rs b/src/libstd_unicode/u_str.rs
index d3aa27b436d..770b67acd49 100644
--- a/src/libstd_unicode/u_str.rs
+++ b/src/libstd_unicode/u_str.rs
@@ -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> {