@@ -292,7 +292,9 @@ Section: Iterators
292
292
293
293
/// Iterator for the char (representing *Unicode Scalar Values*) of a string
294
294
///
295
- /// Created with the method `.chars()`.
295
+ /// Created with the method [`chars()`].
296
+ ///
297
+ /// [`chars()`]: ../primitive.str.html#method.chars
296
298
#[ derive( Clone ) ]
297
299
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
298
300
pub struct Chars < ' a > {
@@ -499,7 +501,9 @@ impl<'a> CharIndices<'a> {
499
501
/// External iterator for a string's bytes.
500
502
/// Use with the `std::iter` module.
501
503
///
502
- /// Created with the method `.bytes()`.
504
+ /// Created with the method [`bytes()`].
505
+ ///
506
+ /// [`bytes()`]: ../primitive.str.html#method.bytes
503
507
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
504
508
#[ derive( Clone ) ]
505
509
pub struct Bytes < ' a > ( Cloned < slice:: Iter < ' a , u8 > > ) ;
@@ -782,10 +786,14 @@ impl<'a, P: Pattern<'a>> SplitInternal<'a, P> {
782
786
783
787
generate_pattern_iterators ! {
784
788
forward:
785
- /// Created with the method `.split()`.
789
+ /// Created with the method [`split()`].
790
+ ///
791
+ /// [`split()`]: ../primitive.str.html#method.split
786
792
struct Split ;
787
793
reverse:
788
- /// Created with the method `.rsplit()`.
794
+ /// Created with the method [`rsplit()`].
795
+ ///
796
+ /// [`rsplit()`]: ../primitive.str.html#method.rsplit
789
797
struct RSplit ;
790
798
stability:
791
799
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -796,10 +804,14 @@ generate_pattern_iterators! {
796
804
797
805
generate_pattern_iterators ! {
798
806
forward:
799
- /// Created with the method `.split_terminator()`.
807
+ /// Created with the method [`split_terminator()`].
808
+ ///
809
+ /// [`split_terminator()`]: ../primitive.str.html#method.split_terminator
800
810
struct SplitTerminator ;
801
811
reverse:
802
- /// Created with the method `.rsplit_terminator()`.
812
+ /// Created with the method [`rsplit_terminator()`].
813
+ ///
814
+ /// [`rsplit_terminator()`]: ../primitive.str.html#method.rsplit_terminator
803
815
struct RSplitTerminator ;
804
816
stability:
805
817
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -842,10 +854,14 @@ impl<'a, P: Pattern<'a>> SplitNInternal<'a, P> {
842
854
843
855
generate_pattern_iterators ! {
844
856
forward:
845
- /// Created with the method `.splitn()`.
857
+ /// Created with the method [`splitn()`].
858
+ ///
859
+ /// [`splitn()`]: ../primitive.str.html#method.splitn
846
860
struct SplitN ;
847
861
reverse:
848
- /// Created with the method `.rsplitn()`.
862
+ /// Created with the method [`rsplitn()`].
863
+ ///
864
+ /// [`rsplitn()`]: ../primitive.str.html#method.rsplitn
849
865
struct RSplitN ;
850
866
stability:
851
867
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -880,10 +896,14 @@ impl<'a, P: Pattern<'a>> MatchIndicesInternal<'a, P> {
880
896
881
897
generate_pattern_iterators ! {
882
898
forward:
883
- /// Created with the method `.match_indices()`.
899
+ /// Created with the method [`match_indices()`].
900
+ ///
901
+ /// [`match_indices()`]: ../primitive.str.html#method.match_indices
884
902
struct MatchIndices ;
885
903
reverse:
886
- /// Created with the method `.rmatch_indices()`.
904
+ /// Created with the method [`rmatch_indices()`].
905
+ ///
906
+ /// [`rmatch_indices()`]: ../primitive.str.html#method.rmatch_indices
887
907
struct RMatchIndices ;
888
908
stability:
889
909
#[ stable( feature = "str_match_indices" , since = "1.5.0" ) ]
@@ -920,10 +940,14 @@ impl<'a, P: Pattern<'a>> MatchesInternal<'a, P> {
920
940
921
941
generate_pattern_iterators ! {
922
942
forward:
923
- /// Created with the method `.matches()`.
943
+ /// Created with the method [`matches()`].
944
+ ///
945
+ /// [`matches()`]: ../primitive.str.html#method.matches
924
946
struct Matches ;
925
947
reverse:
926
- /// Created with the method `.rmatches()`.
948
+ /// Created with the method [`rmatches()`].
949
+ ///
950
+ /// [`rmatches()`]: ../primitive.str.html#method.rmatches
927
951
struct RMatches ;
928
952
stability:
929
953
#[ stable( feature = "str_matches" , since = "1.2.0" ) ]
@@ -932,7 +956,9 @@ generate_pattern_iterators! {
932
956
delegate double ended;
933
957
}
934
958
935
- /// Created with the method `.lines()`.
959
+ /// Created with the method [`lines()`].
960
+ ///
961
+ /// [`lines()`]: ../primitive.str.html#method.lines
936
962
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
937
963
#[ derive( Clone ) ]
938
964
pub struct Lines < ' a > ( Map < SplitTerminator < ' a , char > , LinesAnyMap > ) ;
@@ -960,7 +986,9 @@ impl<'a> DoubleEndedIterator for Lines<'a> {
960
986
}
961
987
}
962
988
963
- /// Created with the method `.lines_any()`.
989
+ /// Created with the method [`lines_any()`].
990
+ ///
991
+ /// [`lines_any()`]: ../primitive.str.html#method.lines_any
964
992
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
965
993
#[ rustc_deprecated( since = "1.4.0" , reason = "use lines()/Lines instead now" ) ]
966
994
#[ derive( Clone ) ]
0 commit comments