@@ -298,9 +298,9 @@ impl str {
298
298
/// excluding `end`.
299
299
///
300
300
/// To get a mutable string slice instead, see the
301
- /// [`slice_mut_unchecked() `] method.
301
+ /// [`slice_mut_unchecked`] method.
302
302
///
303
- /// [`slice_mut_unchecked() `]: #method.slice_mut_unchecked
303
+ /// [`slice_mut_unchecked`]: #method.slice_mut_unchecked
304
304
///
305
305
/// # Safety
306
306
///
@@ -341,9 +341,9 @@ impl str {
341
341
/// excluding `end`.
342
342
///
343
343
/// To get an immutable string slice instead, see the
344
- /// [`slice_unchecked() `] method.
344
+ /// [`slice_unchecked`] method.
345
345
///
346
- /// [`slice_unchecked() `]: #method.slice_unchecked
346
+ /// [`slice_unchecked`]: #method.slice_unchecked
347
347
///
348
348
/// # Safety
349
349
///
@@ -367,10 +367,10 @@ impl str {
367
367
/// The two slices returned go from the start of the string slice to `mid`,
368
368
/// and from `mid` to the end of the string slice.
369
369
///
370
- /// To get mutable string slices instead, see the [`split_at_mut() `]
370
+ /// To get mutable string slices instead, see the [`split_at_mut`]
371
371
/// method.
372
372
///
373
- /// [`split_at_mut() `]: #method.split_at_mut
373
+ /// [`split_at_mut`]: #method.split_at_mut
374
374
///
375
375
/// # Panics
376
376
///
@@ -403,9 +403,9 @@ impl str {
403
403
/// The two slices returned go from the start of the string slice to `mid`,
404
404
/// and from `mid` to the end of the string slice.
405
405
///
406
- /// To get immutable string slices instead, see the [`split_at() `] method.
406
+ /// To get immutable string slices instead, see the [`split_at`] method.
407
407
///
408
- /// [`split_at() `]: #method.split_at
408
+ /// [`split_at`]: #method.split_at
409
409
///
410
410
/// # Panics
411
411
///
@@ -824,10 +824,10 @@ impl str {
824
824
/// [`DoubleEndedIterator`]: iter/trait.DoubleEndedIterator.html
825
825
///
826
826
/// If the pattern allows a reverse search but its results might differ
827
- /// from a forward search, the [`rsplit() `] method can be used.
827
+ /// from a forward search, the [`rsplit`] method can be used.
828
828
///
829
829
/// [`char`]: primitive.char.html
830
- /// [`rsplit() `]: #method.rsplit
830
+ /// [`rsplit`]: #method.rsplit
831
831
///
832
832
/// # Examples
833
833
///
@@ -912,9 +912,9 @@ impl str {
912
912
/// assert_eq!(d, &["a", "b", "c"]);
913
913
/// ```
914
914
///
915
- /// Use [`split_whitespace() `] for this behavior.
915
+ /// Use [`split_whitespace`] for this behavior.
916
916
///
917
- /// [`split_whitespace() `]: #method.split_whitespace
917
+ /// [`split_whitespace`]: #method.split_whitespace
918
918
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
919
919
pub fn split < ' a , P : Pattern < ' a > > ( & ' a self , pat : P ) -> Split < ' a , P > {
920
920
core_str:: StrExt :: split ( self , pat)
@@ -936,9 +936,9 @@ impl str {
936
936
///
937
937
/// [`DoubleEndedIterator`]: iter/trait.DoubleEndedIterator.html
938
938
///
939
- /// For iterating from the front, the [`split() `] method can be used.
939
+ /// For iterating from the front, the [`split`] method can be used.
940
940
///
941
- /// [`split() `]: #method.split
941
+ /// [`split`]: #method.split
942
942
///
943
943
/// # Examples
944
944
///
@@ -977,10 +977,10 @@ impl str {
977
977
/// The pattern can be a `&str`, [`char`], or a closure that determines the
978
978
/// split.
979
979
///
980
- /// Equivalent to [`split() `], except that the trailing substring
980
+ /// Equivalent to [`split`], except that the trailing substring
981
981
/// is skipped if empty.
982
982
///
983
- /// [`split() `]: #method.split
983
+ /// [`split`]: #method.split
984
984
///
985
985
/// This method can be used for string data that is _terminated_,
986
986
/// rather than _separated_ by a pattern.
@@ -995,9 +995,9 @@ impl str {
995
995
/// [`char`]: primitive.char.html
996
996
///
997
997
/// If the pattern allows a reverse search but its results might differ
998
- /// from a forward search, the [`rsplit_terminator() `] method can be used.
998
+ /// from a forward search, the [`rsplit_terminator`] method can be used.
999
999
///
1000
- /// [`rsplit_terminator() `]: #method.rsplit_terminator
1000
+ /// [`rsplit_terminator`]: #method.rsplit_terminator
1001
1001
///
1002
1002
/// # Examples
1003
1003
///
@@ -1025,10 +1025,10 @@ impl str {
1025
1025
///
1026
1026
/// [`char`]: primitive.char.html
1027
1027
///
1028
- /// Equivalent to [`split() `], except that the trailing substring is
1028
+ /// Equivalent to [`split`], except that the trailing substring is
1029
1029
/// skipped if empty.
1030
1030
///
1031
- /// [`split() `]: #method.split
1031
+ /// [`split`]: #method.split
1032
1032
///
1033
1033
/// This method can be used for string data that is _terminated_,
1034
1034
/// rather than _separated_ by a pattern.
@@ -1039,10 +1039,10 @@ impl str {
1039
1039
/// reverse search, and it will be double ended if a forward/reverse
1040
1040
/// search yields the same elements.
1041
1041
///
1042
- /// For iterating from the front, the [`split_terminator() `] method can be
1042
+ /// For iterating from the front, the [`split_terminator`] method can be
1043
1043
/// used.
1044
1044
///
1045
- /// [`split_terminator() `]: #method.split_terminator
1045
+ /// [`split_terminator`]: #method.split_terminator
1046
1046
///
1047
1047
/// # Examples
1048
1048
///
@@ -1076,10 +1076,10 @@ impl str {
1076
1076
/// The returned iterator will not be double ended, because it is
1077
1077
/// not efficient to support.
1078
1078
///
1079
- /// If the pattern allows a reverse search, the [`rsplitn() `] method can be
1079
+ /// If the pattern allows a reverse search, the [`rsplitn`] method can be
1080
1080
/// used.
1081
1081
///
1082
- /// [`rsplitn() `]: #method.rsplitn
1082
+ /// [`rsplitn`]: #method.rsplitn
1083
1083
///
1084
1084
/// # Examples
1085
1085
///
@@ -1127,9 +1127,9 @@ impl str {
1127
1127
/// The returned iterator will not be double ended, because it is not
1128
1128
/// efficient to support.
1129
1129
///
1130
- /// For splitting from the front, the [`splitn() `] method can be used.
1130
+ /// For splitting from the front, the [`splitn`] method can be used.
1131
1131
///
1132
- /// [`splitn() `]: #method.splitn
1132
+ /// [`splitn`]: #method.splitn
1133
1133
///
1134
1134
/// # Examples
1135
1135
///
@@ -1177,9 +1177,9 @@ impl str {
1177
1177
/// [`char`]: primitive.char.html
1178
1178
///
1179
1179
/// If the pattern allows a reverse search but its results might differ
1180
- /// from a forward search, the [`rmatches() `] method can be used.
1180
+ /// from a forward search, the [`rmatches`] method can be used.
1181
1181
///
1182
- /// [`rmatches() `]: #method.rmatches
1182
+ /// [`rmatches`]: #method.rmatches
1183
1183
///
1184
1184
/// # Examples
1185
1185
///
@@ -1213,9 +1213,9 @@ impl str {
1213
1213
///
1214
1214
/// [`DoubleEndedIterator`]: iter/trait.DoubleEndedIterator.html
1215
1215
///
1216
- /// For iterating from the front, the [`matches() `] method can be used.
1216
+ /// For iterating from the front, the [`matches`] method can be used.
1217
1217
///
1218
- /// [`matches() `]: #method.matches
1218
+ /// [`matches`]: #method.matches
1219
1219
///
1220
1220
/// # Examples
1221
1221
///
@@ -1255,9 +1255,9 @@ impl str {
1255
1255
/// [`DoubleEndedIterator`]: iter/trait.DoubleEndedIterator.html
1256
1256
///
1257
1257
/// If the pattern allows a reverse search but its results might differ
1258
- /// from a forward search, the [`rmatch_indices() `] method can be used.
1258
+ /// from a forward search, the [`rmatch_indices`] method can be used.
1259
1259
///
1260
- /// [`rmatch_indices() `]: #method.rmatch_indices
1260
+ /// [`rmatch_indices`]: #method.rmatch_indices
1261
1261
///
1262
1262
/// # Examples
1263
1263
///
@@ -1297,9 +1297,9 @@ impl str {
1297
1297
///
1298
1298
/// [`DoubleEndedIterator`]: iter/trait.DoubleEndedIterator.html
1299
1299
///
1300
- /// For iterating from the front, the [`match_indices() `] method can be used.
1300
+ /// For iterating from the front, the [`match_indices`] method can be used.
1301
1301
///
1302
- /// [`match_indices() `]: #method.match_indices
1302
+ /// [`match_indices`]: #method.match_indices
1303
1303
///
1304
1304
/// # Examples
1305
1305
///
0 commit comments