Skip to content

Commit c8b5374

Browse files
authored
Merge pull request #283 from sogaiu/tweak-look-peg-special-docs
Tweak look peg special docs
2 parents 8c76285 + 5f2fa32 commit c8b5374

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

content/docs/peg.mdz

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,10 @@ compiled to bytecode).
178178
@tr{@td{@code`(! patt)` }
179179
@td{ Alias for @code`(not patt)` }}
180180

181-
@tr{@td{@code`(look offset ?patt)` }
182-
@td{ If patt is provided, matches only if patt matches at a fixed
183-
offset. offset can be any integer. patt will not produce captures and
184-
the peg will not advance any characters. If patt is not provided,
185-
matching occurs as if the call had been (look 0 offset). }}
181+
@tr{@td{@code`(look ?offset patt)` }
182+
@td{ Matches only if patt matches at a fixed offset. offset can be
183+
any integer and defaults to 0. The peg will not advance any
184+
characters. }}
186185

187186
@tr{@td{@code`(> offset ?patt)` }
188187
@td{ Alias for @code`(look offset ?patt)` }}

0 commit comments

Comments
 (0)