1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-25 17:57:17 +00:00

Fix typo.

This commit is contained in:
Andrew Chambers 2019-12-03 21:14:00 +13:00
parent fc53445d08
commit 73db8584e0

View File

@ -888,7 +888,7 @@ static uint32_t peg_compile1(Builder *b, Janet peg) {
for (; i > 0 && janet_checktype(peg, JANET_KEYWORD); --i) { for (; i > 0 && janet_checktype(peg, JANET_KEYWORD); --i) {
peg = janet_table_get_ex(grammar, peg, &grammar); peg = janet_table_get_ex(grammar, peg, &grammar);
if (!grammar || janet_checktype(peg, JANET_NIL)) if (!grammar || janet_checktype(peg, JANET_NIL))
peg_panic(b, "unkown rule"); peg_panic(b, "unknown rule");
b->form = peg; b->form = peg;
b->grammar = grammar; b->grammar = grammar;
} }