docs(path): improve comments (#2223)

* chore(path): improve comments

copy from https://github.com/julienschmidt/httprouter/commit/15782a78c61201cf2fdbc138d63aa60fff114695

* fix typo

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu
2020-01-28 11:38:45 +08:00
committed by thinkerou
parent 07c0f05f24
commit 64e6a7654f
2 changed files with 18 additions and 8 deletions
+1 -1
View File
@@ -401,7 +401,7 @@ func (n *node) insertChild(numParams uint8, path string, fullPath string, handle
return
}
// If no wildcard was found, simple insert the path and handle
// If no wildcard was found, simply insert the path and handle
n.path = path
n.handlers = handlers
n.fullPath = fullPath