Skip to content

Commit 0f0af50

Browse files
moonmingagentzh
authored andcommitted
doc: fixed a typo in a code example for ngx.re.match.
Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
1 parent 51c14a8 commit 0f0af50

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5909,7 +5909,7 @@ The optional fourth argument, `ctx`, can be a Lua table holding an optional `pos
59095909

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

doc/HttpLuaModule.wiki

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4932,7 +4932,7 @@ The optional fourth argument, <code>ctx</code>, can be a Lua table holding an op
49324932
<geshi lang="lua">
49334933
local ctx = { pos = 2 }
49344934
local m, err = ngx.re.match("1234, hello", "[0-9]+", "", ctx)
4935-
-- m[0] = "34"
4935+
-- m[0] = "234"
49364936
-- ctx.pos == 5
49374937
</geshi>
49384938

0 commit comments

Comments
 (0)