From 57d110b19e3dc5b5a089fab1dd75f6e2f9a785d4 Mon Sep 17 00:00:00 2001 From: LaoK996 <2388405897@qq.com> Date: Fri, 23 Nov 2018 19:44:39 +0800 Subject: [PATCH 1/2] Update ch5-02-router.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 原文引入了一个示例路由,但没有使用。补充一个。 --- ch5-web/ch5-02-router.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch5-web/ch5-02-router.md b/ch5-web/ch5-02-router.md index d991c0f..42d0d2b 100644 --- a/ch5-web/ch5-02-router.md +++ b/ch5-web/ch5-02-router.md @@ -231,4 +231,4 @@ indices: 子节点索引,当子节点为非参数类型,即本节点的 wild 4. 在插入 static 节点时,父节点的 wildChild 字段被设置为 true。 5. 在插入 static 节点时,父节点的 children 非空,且子节点 nType 为 catchAll。 -只要发生冲突,都会在初始化的时候 panic。 +只要发生冲突,都会在初始化的时候 panic。例如,在插入我们臆想的路由`GET /marketplace_listing/plans/ohyes`时,出现第4种冲突情况:它的父节点`marketplace_listing/plans/`的 wildChild 字段为true。 From 16c4ea82e1b20645daed1ac45e8f0741bc10b0e4 Mon Sep 17 00:00:00 2001 From: LaoK996 <2388405897@qq.com> Date: Fri, 23 Nov 2018 19:46:08 +0800 Subject: [PATCH 2/2] Update ch5-02-router.md --- ch5-web/ch5-02-router.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch5-web/ch5-02-router.md b/ch5-web/ch5-02-router.md index 42d0d2b..64335b1 100644 --- a/ch5-web/ch5-02-router.md +++ b/ch5-web/ch5-02-router.md @@ -231,4 +231,4 @@ indices: 子节点索引,当子节点为非参数类型,即本节点的 wild 4. 在插入 static 节点时,父节点的 wildChild 字段被设置为 true。 5. 在插入 static 节点时,父节点的 children 非空,且子节点 nType 为 catchAll。 -只要发生冲突,都会在初始化的时候 panic。例如,在插入我们臆想的路由`GET /marketplace_listing/plans/ohyes`时,出现第4种冲突情况:它的父节点`marketplace_listing/plans/`的 wildChild 字段为true。 +只要发生冲突,都会在初始化的时候 panic。例如,在插入我们臆想的路由`GET /marketplace_listing/plans/ohyes`时,出现第4种冲突情况:它的父节点`marketplace_listing/plans/`的 wildChild 字段为 true。