@@ -79,12 +79,12 @@ where
7979
8080/// States used in [`CommentProcessor::process_input_buffer`]
8181enum State {
82- /// This state indicates that a comment token has not been
83- /// found yet. When a newline character is found before
84- /// finding a comment, `leading_newline` is set to `true`.
82+ /// This state indicates that a comment token has not been found yet.
83+ /// When a newline character is found before finding a comment,
84+ /// `leading_newline` is set to `true`.
8585 PreComment { leading_newline : bool } ,
86- /// Once a comment token is found, it goes to this state
87- /// which contains information about the being created.
86+ /// Once a comment token is found, it goes to this state which contains
87+ /// information about the comment being created.
8888 Comment {
8989 indentation : usize ,
9090 leading_newline : bool ,
@@ -145,8 +145,8 @@ where
145145 /// comments, and control tokens. No other kind of tokens can appear in
146146 /// the input buffer. In fact, this function is called when a different
147147 /// kind of tokens is observed in the input stream, so, while processing
148- /// the input buffer we can assume that the token that comes next after
149- /// those in the input buffer is not a whitespace, newline nor comment.
148+ /// the input buffer we can assume that the token that comes after those
149+ /// in the input buffer is not a whitespace, newline or comment.
150150 ///
151151 /// This function works like an automaton with two states `PreComment`
152152 /// and `Comment`. The automaton remains in the `PreComment` state
0 commit comments