@@ -3,7 +3,7 @@ use std::str::from_utf8_unchecked;
33
44use crate :: TokenSource ;
55
6- /// Returns a [`TokenSource`](crate::intern::TokenSource) that uses
6+ /// Returns a [`TokenSource`] that uses
77/// the lines in `data` as Tokens. The newline seperator (`\r\n` or `\n`) is
88/// not included in the emitted tokens.
99/// This means that changing the newline seperator from `\r\n` to `\n`
@@ -12,7 +12,7 @@ pub fn lines(data: &str) -> Lines<'_, false> {
1212 Lines ( ByteLines ( data. as_bytes ( ) ) )
1313}
1414
15- /// Returns a [`TokenSource`](crate::intern::TokenSource) that uses
15+ /// Returns a [`TokenSource`] that uses
1616/// the lines in `data` as Tokens. The newline seperator (`\r\n` or `\n`) is
1717/// included in the emitted tokens.
1818/// This means that changing the newline seperator from `\r\n` to `\n`
@@ -21,7 +21,7 @@ pub fn lines_with_terminator(data: &str) -> Lines<'_, true> {
2121 Lines ( ByteLines ( data. as_bytes ( ) ) )
2222}
2323
24- /// Returns a [`TokenSource`](crate::intern::TokenSource) that uses
24+ /// Returns a [`TokenSource`] that uses
2525/// the lines in `data` as Tokens. A lines is a continous subslice of
2626/// `data` which does not contain `\n` (or `\r\n`).
2727/// The newline seperator (`\r\n` or `\n`) is not included in the emitted tokens.
@@ -31,7 +31,7 @@ pub fn byte_lines_with_terminator(data: &[u8]) -> ByteLines<'_, true> {
3131 ByteLines ( data)
3232}
3333
34- /// Returns a [`TokenSource`](crate::intern::TokenSource) that uses
34+ /// Returns a [`TokenSource`] that uses
3535/// the lines in `data` as Tokens. The newline seperator (`\r\n` or `\n`) is
3636/// included in the emitted tokens.
3737/// This means that changing the newline seperator from `\r\n` to `\n`
@@ -69,8 +69,8 @@ impl<'a> TokenSource for &'a [u8] {
6969 }
7070}
7171
72- /// A [`TokenSource`](crate::intern::TokenSource) that returns the lines of a `str` as tokens.
73- /// See [`lines`](crate::sources::lines) and [`lines_with_terminator`](crate::sources::lines_with_terminator) for details
72+ /// A [`TokenSource`] that returns the lines of a `str` as tokens.
73+ /// See [`lines`] and [`lines_with_terminator`] for details
7474#[ derive( Clone , Copy , PartialEq , Eq ) ]
7575pub struct Lines < ' a , const INCLUDE_LINE_TERMINATOR : bool > ( ByteLines < ' a , INCLUDE_LINE_TERMINATOR > ) ;
7676
@@ -99,8 +99,8 @@ impl<'a, const INCLUDE_LINE_TERMINATOR: bool> TokenSource for Lines<'a, INCLUDE_
9999 }
100100}
101101
102- /// A [`TokenSource`](crate::intern::TokenSource) that returns the lines of a byte slice as tokens.
103- /// See [`byte_lines`](crate::sources::lines) and [`byte_lines_with_terminator`](crate::sources::byte_lines_with_terminator) for details
102+ /// A [`TokenSource`] that returns the lines of a byte slice as tokens.
103+ /// See [`byte_lines`] and [`byte_lines_with_terminator`] for details
104104#[ derive( Clone , Copy , PartialEq , Eq ) ]
105105pub struct ByteLines < ' a , const INCLUDE_LINE_TERMINATOR : bool > ( & ' a [ u8 ] ) ;
106106
0 commit comments