Skip to content

Commit

Permalink
doc: fixed a typo in a code example for ngx.re.match.
Browse files Browse the repository at this point in the history
Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
  • Loading branch information
moonming authored and agentzh committed Jul 19, 2017
1 parent 51c14a8 commit 0f0af50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.markdown
Expand Up @@ -5909,7 +5909,7 @@ The optional fourth argument, `ctx`, can be a Lua table holding an optional `pos

local ctx = { pos = 2 }
local m, err = ngx.re.match("1234, hello", "[0-9]+", "", ctx)
-- m[0] = "34"
-- m[0] = "234"
-- ctx.pos == 5
```

Expand Down
2 changes: 1 addition & 1 deletion doc/HttpLuaModule.wiki
Expand Up @@ -4932,7 +4932,7 @@ The optional fourth argument, <code>ctx</code>, can be a Lua table holding an op
<geshi lang="lua">
local ctx = { pos = 2 }
local m, err = ngx.re.match("1234, hello", "[0-9]+", "", ctx)
-- m[0] = "34"
-- m[0] = "234"
-- ctx.pos == 5
</geshi>
Expand Down

0 comments on commit 0f0af50

Please sign in to comment.