@@ -292,7 +292,9 @@ Section: Iterators
292292
293293/// Iterator for the char (representing *Unicode Scalar Values*) of a string
294294///
295- /// Created with the method `.chars()`.
295+ /// Created with the method [`chars()`].
296+ ///
297+ /// [`chars()`]: ../primitive.str.html#method.chars
296298#[ derive( Clone ) ]
297299#[ stable( feature = "rust1" , since = "1.0.0" ) ]
298300pub struct Chars < ' a > {
@@ -499,7 +501,9 @@ impl<'a> CharIndices<'a> {
499501/// External iterator for a string's bytes.
500502/// Use with the `std::iter` module.
501503///
502- /// Created with the method `.bytes()`.
504+ /// Created with the method [`bytes()`].
505+ ///
506+ /// [`bytes()`]: ../primitive.str.html#method.bytes
503507#[ stable( feature = "rust1" , since = "1.0.0" ) ]
504508#[ derive( Clone ) ]
505509pub struct Bytes < ' a > ( Cloned < slice:: Iter < ' a , u8 > > ) ;
@@ -782,10 +786,14 @@ impl<'a, P: Pattern<'a>> SplitInternal<'a, P> {
782786
783787generate_pattern_iterators ! {
784788 forward:
785- /// Created with the method `.split()`.
789+ /// Created with the method [`split()`].
790+ ///
791+ /// [`split()`]: ../primitive.str.html#method.split
786792 struct Split ;
787793 reverse:
788- /// Created with the method `.rsplit()`.
794+ /// Created with the method [`rsplit()`].
795+ ///
796+ /// [`rsplit()`]: ../primitive.str.html#method.rsplit
789797 struct RSplit ;
790798 stability:
791799 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -796,10 +804,14 @@ generate_pattern_iterators! {
796804
797805generate_pattern_iterators ! {
798806 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
800810 struct SplitTerminator ;
801811 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
803815 struct RSplitTerminator ;
804816 stability:
805817 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -842,10 +854,14 @@ impl<'a, P: Pattern<'a>> SplitNInternal<'a, P> {
842854
843855generate_pattern_iterators ! {
844856 forward:
845- /// Created with the method `.splitn()`.
857+ /// Created with the method [`splitn()`].
858+ ///
859+ /// [`splitn()`]: ../primitive.str.html#method.splitn
846860 struct SplitN ;
847861 reverse:
848- /// Created with the method `.rsplitn()`.
862+ /// Created with the method [`rsplitn()`].
863+ ///
864+ /// [`rsplitn()`]: ../primitive.str.html#method.rsplitn
849865 struct RSplitN ;
850866 stability:
851867 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -880,10 +896,14 @@ impl<'a, P: Pattern<'a>> MatchIndicesInternal<'a, P> {
880896
881897generate_pattern_iterators ! {
882898 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
884902 struct MatchIndices ;
885903 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
887907 struct RMatchIndices ;
888908 stability:
889909 #[ stable( feature = "str_match_indices" , since = "1.5.0" ) ]
@@ -920,10 +940,14 @@ impl<'a, P: Pattern<'a>> MatchesInternal<'a, P> {
920940
921941generate_pattern_iterators ! {
922942 forward:
923- /// Created with the method `.matches()`.
943+ /// Created with the method [`matches()`].
944+ ///
945+ /// [`matches()`]: ../primitive.str.html#method.matches
924946 struct Matches ;
925947 reverse:
926- /// Created with the method `.rmatches()`.
948+ /// Created with the method [`rmatches()`].
949+ ///
950+ /// [`rmatches()`]: ../primitive.str.html#method.rmatches
927951 struct RMatches ;
928952 stability:
929953 #[ stable( feature = "str_matches" , since = "1.2.0" ) ]
@@ -932,7 +956,9 @@ generate_pattern_iterators! {
932956 delegate double ended;
933957}
934958
935- /// Created with the method `.lines()`.
959+ /// Created with the method [`lines()`].
960+ ///
961+ /// [`lines()`]: ../primitive.str.html#method.lines
936962#[ stable( feature = "rust1" , since = "1.0.0" ) ]
937963#[ derive( Clone ) ]
938964pub struct Lines < ' a > ( Map < SplitTerminator < ' a , char > , LinesAnyMap > ) ;
@@ -960,7 +986,9 @@ impl<'a> DoubleEndedIterator for Lines<'a> {
960986 }
961987}
962988
963- /// Created with the method `.lines_any()`.
989+ /// Created with the method [`lines_any()`].
990+ ///
991+ /// [`lines_any()`]: ../primitive.str.html#method.lines_any
964992#[ stable( feature = "rust1" , since = "1.0.0" ) ]
965993#[ rustc_deprecated( since = "1.4.0" , reason = "use lines()/Lines instead now" ) ]
966994#[ derive( Clone ) ]
0 commit comments