Skip to content

Commit 1d029d9

Browse files
authored
nit: fix minor typo in usage of it's vs its in the docs (#1043)
1 parent 0a1533d commit 1d029d9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

derive/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
180180
//! | `e?` | optionally matches `e` |
181181
//! | `&e` | matches `e` without making progress |
182182
//! | `!e` | matches if `e` doesn't match without making progress |
183-
//! | `PUSH(e)` | matches `e` and pushes it's captured string down the stack |
183+
//! | `PUSH(e)` | matches `e` and pushes its captured string down the stack |
184184
//!
185185
//! where `e`, `e1`, and `e2` are expressions.
186186
//!
@@ -191,7 +191,7 @@
191191
//! // input: ab_bb_b
192192
//!
193193
//! identifier = @{ "a" ~ ("b"|"_")* ~ "b" }
194-
//! // matches: a b_bb_b nothing -> error!
194+
//! // matches: a b_bb_b nothing -> error!
195195
//!
196196
//! identifier = @{ "a" ~ ("_"* ~ "b")* }
197197
//! // matches: a b, _bb, _b in three repetitions

pest/src/parser_state.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ pub struct ParserState<'i, R: RuleType> {
407407
position: Position<'i>,
408408
/// Queue representing rules partially (`QueueableToken::Start`) and
409409
/// totally (`QueueableToken::End`) parsed. When entering rule we put it in the queue in a state
410-
/// of `Start` and after all it's sublogic (subrules or strings) are parsed, we change it to
410+
/// of `Start` and after all its sublogic (subrules or strings) are parsed, we change it to
411411
/// `End` state.
412412
queue: Vec<QueueableToken<'i, R>>,
413413
/// Status set in case specific lookahead logic is used in grammar.
@@ -1359,7 +1359,7 @@ impl<'i, R: RuleType> ParserState<'i, R> {
13591359
F: FnOnce(Box<Self>) -> ParseResult<Box<Self>>,
13601360
{
13611361
self = self.inc_call_check_limit()?;
1362-
// In case child parsing call is another `atomic` it will have it's own atomicity status.
1362+
// In case child parsing call is another `atomic` it will have its own atomicity status.
13631363
let initial_atomicity = self.atomicity;
13641364
// In case child atomicity is the same as we've demanded, we shouldn't do nothing.
13651365
// E.g. we have the following rules:

0 commit comments

Comments
 (0)