You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sp...@apache.org on 2020/11/29 03:41:20 UTC

[apisix] branch master updated: fix: Synchronize with english doc (#2877)

This is an automated email from the ASF dual-hosted git repository.

spacewander pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new ce1d40b  fix: Synchronize with english doc (#2877)
ce1d40b is described below

commit ce1d40b42f056f46b20386e1937fc81ba69e84c6
Author: super_mario <40...@qq.com>
AuthorDate: Sun Nov 29 11:41:13 2020 +0800

    fix: Synchronize with english doc (#2877)
---
 doc/plugin-develop.md       | 2 +-
 doc/zh-cn/plugin-develop.md | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/plugin-develop.md b/doc/plugin-develop.md
index ef0ca94..e483574 100644
--- a/doc/plugin-develop.md
+++ b/doc/plugin-develop.md
@@ -179,7 +179,7 @@ function _M.log(conf)
 end
 ```
 
-**Note : we can't invoke `ngx.exit` or `core.respond.exit` in rewrite phase and access phase. if need to exit, just return the status and body, the plugin engine will make the exit happen with the returned status and body. [example](https://github.com/apache/apisix/blob/master/apisix/plugins/limit-count.lua#L132)**
+**Note : we can't invoke `ngx.exit` or `core.respond.exit` in rewrite phase and access phase. if need to exit, just return the status and body, the plugin engine will make the exit happen with the returned status and body. [example](https://github.com/apache/apisix/blob/35269581e21473e1a27b11cceca6f773cad0192a/apisix/plugins/limit-count.lua#L177)**
 
 ## implement the logic
 
diff --git a/doc/zh-cn/plugin-develop.md b/doc/zh-cn/plugin-develop.md
index 360e43d..8d86be1 100644
--- a/doc/zh-cn/plugin-develop.md
+++ b/doc/zh-cn/plugin-develop.md
@@ -163,7 +163,7 @@ local _M = {
 该插件在 rewrite 、access 阶段执行都可以,项目中是用 rewrite 阶段执行认证逻辑,一般 IP 准入、接口权限是在 access 阶段
 完成的。
 
-**注意:我们不能在 rewrite 和 access 阶段调用 `ngx.exit` 或者 `core.respond.exit`。如果确实需要退出,只需要 return 状态码和正文,插件引擎将使用返回的状态码和正文进行退出。**
+**注意:我们不能在 rewrite 和 access 阶段调用 `ngx.exit` 或者 `core.respond.exit`。如果确实需要退出,只需要 return 状态码和正文,插件引擎将使用返回的状态码和正文进行退出。[例子](https://github.com/apache/apisix/blob/35269581e21473e1a27b11cceca6f773cad0192a/apisix/plugins/limit-count.lua#L177)**
 
 ## 编写执行逻辑