From: Kunpei Sakai Date: Fri, 30 Mar 2018 19:19:06 +0000 (+0900) Subject: net/http: add function name to the beginning of comment X-Git-Tag: go1.11beta1~1034 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4468b0bac156b76b2a591b3aa3a0aa4dd60a0fce;p=gostls13.git net/http: add function name to the beginning of comment Change-Id: I6f5a94cd8b6e8f7201202514ac0f9c78811c43bc Reviewed-on: https://go-review.googlesource.com/103695 Reviewed-by: Brad Fitzpatrick --- diff --git a/src/net/http/server.go b/src/net/http/server.go index c04eb42fef..084af32a6b 100644 --- a/src/net/http/server.go +++ b/src/net/http/server.go @@ -2152,7 +2152,7 @@ func pathMatch(pattern, path string) bool { return len(path) >= n && path[0:n] == pattern } -// Return the canonical path for p, eliminating . and .. elements. +// cleanPath returns the canonical path for p, eliminating . and .. elements. func cleanPath(p string) string { if p == "" { return "/"