Skip to content

Commit 523137c

Browse files
committed
Fixed sample examples in README
1 parent 347113d commit 523137c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ auto ret = pg.parse(" token1, token2 ");
170170
We can ignore unnecessary semantic values from the list by using `~` operator.
171171

172172
```cpp
173-
peg::pegparser parser(R"(
173+
peg::parser parser(R"(
174174
ROOT <- _ ITEM (',' _ ITEM _)*
175175
ITEM <- ([a-z])+
176176
~_ <- [ \t]*
@@ -186,7 +186,7 @@ auto ret = parser.parse(" item1, item2 ");
186186
The following grammar is same as the above.
187187

188188
```cpp
189-
peg::pegparser parser(R"(
189+
peg::parser parser(R"(
190190
ROOT <- ~_ ITEM (',' ~_ ITEM ~_)*
191191
ITEM <- ([a-z])+
192192
_ <- [ \t]*

0 commit comments

Comments
 (0)