@@ -167,7 +167,7 @@ impl ParserBuilder {
167167 /// they should impose a limit on the length, in bytes, of the concrete
168168 /// pattern string. In particular, this is viable since this parser
169169 /// implementation will limit itself to heap space proportional to the
170- /// lenth of the pattern string.
170+ /// length of the pattern string.
171171 ///
172172 /// Note that a nest limit of `0` will return a nest limit error for most
173173 /// patterns but not all. For example, a nest limit of `0` permits `a` but
@@ -236,7 +236,7 @@ pub struct Parser {
236236 /// supported.
237237 octal : bool ,
238238 /// The initial setting for `ignore_whitespace` as provided by
239- /// Th `ParserBuilder`. is is used when reseting the parser's state.
239+ /// `ParserBuilder`. It is used when resetting the parser's state.
240240 initial_ignore_whitespace : bool ,
241241 /// Whether whitespace should be ignored. When enabled, comments are
242242 /// also permitted.
@@ -1023,7 +1023,7 @@ impl<'s, P: Borrow<Parser>> ParserI<'s, P> {
10231023 /// The given `kind` should correspond to the operator observed by the
10241024 /// caller.
10251025 ///
1026- /// This assumes that the paser is currently positioned at the repetition
1026+ /// This assumes that the parser is currently positioned at the repetition
10271027 /// operator and advances the parser to the first character after the
10281028 /// operator. (Note that the operator may include a single additional `?`,
10291029 /// which makes the operator ungreedy.)
@@ -1078,7 +1078,7 @@ impl<'s, P: Borrow<Parser>> ParserI<'s, P> {
10781078 /// corresponds to the {m,n} syntax, and does not include the ?, * or +
10791079 /// operators.
10801080 ///
1081- /// This assumes that the paser is currently positioned at the opening `{`
1081+ /// This assumes that the parser is currently positioned at the opening `{`
10821082 /// and advances the parser to the first character after the operator.
10831083 /// (Note that the operator may include a single additional `?`, which
10841084 /// makes the operator ungreedy.)
0 commit comments