Skip to content

Commit 3b39621

Browse files
committed
Remove parentheses in method references
1 parent c4b11d1 commit 3b39621

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

src/libcollections/str.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ impl<S: Borrow<str>> SliceConcatExt<str> for [S] {
137137
///
138138
/// [`u16`]: ../../std/primitive.u16.html
139139
///
140-
/// This struct is created by the [`encode_utf16()`] method on [`str`].
140+
/// This struct is created by the [`encode_utf16`] method on [`str`].
141141
/// See its documentation for more.
142142
///
143-
/// [`encode_utf16()`]: ../../std/primitive.str.html#method.encode_utf16
143+
/// [`encode_utf16`]: ../../std/primitive.str.html#method.encode_utf16
144144
/// [`str`]: ../../std/primitive.str.html
145145
#[derive(Clone)]
146146
#[stable(feature = "encode_utf16", since = "1.8.0")]

src/libcore/str/mod.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -373,10 +373,10 @@ Section: Iterators
373373
///
374374
/// [`char`]: ../../std/primitive.char.html
375375
///
376-
/// This struct is created by the [`chars()`] method on [`str`].
376+
/// This struct is created by the [`chars`] method on [`str`].
377377
/// See its documentation for more.
378378
///
379-
/// [`chars()`]: ../../std/primitive.str.html#method.chars
379+
/// [`chars`]: ../../std/primitive.str.html#method.chars
380380
/// [`str`]: ../../std/primitive.str.html
381381
#[derive(Clone, Debug)]
382382
#[stable(feature = "rust1", since = "1.0.0")]
@@ -561,10 +561,10 @@ impl<'a> Chars<'a> {
561561
///
562562
/// [`char`]: ../../std/primitive.char.html
563563
///
564-
/// This struct is created by the [`char_indices()`] method on [`str`].
564+
/// This struct is created by the [`char_indices`] method on [`str`].
565565
/// See its documentation for more.
566566
///
567-
/// [`char_indices()`]: ../../std/primitive.str.html#method.char_indices
567+
/// [`char_indices`]: ../../std/primitive.str.html#method.char_indices
568568
/// [`str`]: ../../std/primitive.str.html
569569
#[derive(Clone, Debug)]
570570
#[stable(feature = "rust1", since = "1.0.0")]
@@ -639,10 +639,10 @@ impl<'a> CharIndices<'a> {
639639

640640
/// An iterator over the bytes of a string slice.
641641
///
642-
/// This struct is created by the [`bytes()`] method on [`str`].
642+
/// This struct is created by the [`bytes`] method on [`str`].
643643
/// See its documentation for more.
644644
///
645-
/// [`bytes()`]: ../../std/primitive.str.html#method.bytes
645+
/// [`bytes`]: ../../std/primitive.str.html#method.bytes
646646
/// [`str`]: ../../std/primitive.str.html
647647
#[stable(feature = "rust1", since = "1.0.0")]
648648
#[derive(Clone, Debug)]
@@ -1176,10 +1176,10 @@ generate_pattern_iterators! {
11761176

11771177
/// An iterator over the lines of a string, as string slices.
11781178
///
1179-
/// This struct is created with the [`lines()`] method on [`str`].
1179+
/// This struct is created with the [`lines`] method on [`str`].
11801180
/// See its documentation for more.
11811181
///
1182-
/// [`lines()`]: ../../std/primitive.str.html#method.lines
1182+
/// [`lines`]: ../../std/primitive.str.html#method.lines
11831183
/// [`str`]: ../../std/primitive.str.html
11841184
#[stable(feature = "rust1", since = "1.0.0")]
11851185
#[derive(Clone, Debug)]

src/libstd_unicode/u_str.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ use core::str::Split;
2020
/// An iterator over the non-whitespace substrings of a string,
2121
/// separated by any amount of whitespace.
2222
///
23-
/// This struct is created by the [`split_whitespace()`] method on [`str`].
23+
/// This struct is created by the [`split_whitespace`] method on [`str`].
2424
/// See its documentation for more.
2525
///
26-
/// [`split_whitespace()`]: ../../std/primitive.str.html#method.split_whitespace
26+
/// [`split_whitespace`]: ../../std/primitive.str.html#method.split_whitespace
2727
/// [`str`]: ../../std/primitive.str.html
2828
#[stable(feature = "split_whitespace", since = "1.1.0")]
2929
pub struct SplitWhitespace<'a> {

0 commit comments

Comments
 (0)