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 "/"