Skip to content

Commit d8abe8f

Browse files
adembudaktzlaine
authored andcommitted
Fix some typos on documentation
1 parent 810adb4 commit d8abe8f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/tables.qbk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ attribute type is `char32_t`:
505505
static_assert(std::is_same_v<decltype(result), std::optional<char32_t>>));
506506

507507
The good news is that usually you don't parse characters individually. When
508-
you parse with _ch_, you usually parse repetition of then, which will produce
508+
you parse with _ch_, you usually parse repetition of them, which will produce
509509
a _std_str_, regardless of whether you're in Unicode parsing mode or not. If
510510
you do need to parse individual characters, and want to lock down their
511511
attribute type, you can use _cp_ and/or _cu_ to enforce a non-polymorphic
@@ -551,7 +551,7 @@ tables below:
551551
[[`p1 || p2`] [`_bp_tup_<_ATTR_np_(p1), _ATTR_np_(p2)>`]]
552552
[[`p1 || p2 || p3`] [`_bp_tup_<_ATTR_np_(p1), _ATTR_np_(p2), _ATTR_np_(p3)>`]]
553553

554-
[[`p1 % p2`] [`std::string` if `_ATTR_np_(p)` is `char` or `char32_t`, otherwise `std::vector<_ATTR_np_(p1)>`]]
554+
[[`p1 % p2`] [`std::string` if `_ATTR_np_(p1)` is `char` or `char32_t`, otherwise `std::vector<_ATTR_np_(p1)>`]]
555555

556556
[[`p[a]`] [None.]]
557557

doc/tutorial.qbk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ things:
584584

585585
* This rule object itself is called `doubles`.
586586

587-
* We've given `doubles` the diagnstic text `"doubles"` so that _Parser_ knows
587+
* We've given `doubles` the diagnostic text `"doubles"` so that _Parser_ knows
588588
how to refer to it when producing a trace of the parser during debugging.
589589

590590
Ok, so if `doubles` is a parser, what does it do? We define the rule's
@@ -3608,7 +3608,7 @@ to `_trace_::off`.
36083608

36093609
If we trace a substantial parser, we will see a *lot* of output. Each code
36103610
point of the input must be considered, one at a time, to see if a certain rule
3611-
matches. An an example, let's trace a parse using the JSON parser from
3611+
matches. As an example, let's trace a parse using the JSON parser from
36123612
_ex_json_. The input is `"null"`. `null` is one of the types that a
36133613
Javascript value can have; the top-level parser in the JSON parser example is:
36143614

0 commit comments

Comments
 (0)