Skip to content

Commit

Permalink
Merge pull request #5 from tst2005/patch-1
Browse files Browse the repository at this point in the history
typo fix
  • Loading branch information
pygy committed Aug 4, 2015
2 parents 9855c3d + c6de488 commit 0798072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ In Lua 5.1, LPeg creates globals when `require"lpeg"` and `require"re"` are call

If you want to use LuLPeg in a Lua 5.1 sandbox that doesn't provide `newproxy()` and/or `debug.setmetatable()`, the `#pattern` syntax will not work for lookahead patterns. We provide the `L()` function as a fallback. Replace `#pattern` with `L(pattern)` in your grammar and it will work as expected.

### "Global" mode for expolration:
### "Global" mode for exploration:

`LuLPeg:global(_G or _ENV)` sets LuLPeg as the __index of the the current environment, sparring you from aliasing each LPeg command manually. This is useful if you want to explore LPeg at the command line, for example.

Expand Down

0 comments on commit 0798072

Please sign in to comment.