util: Fix typo

This commit is contained in:
James Shubin
2019-07-26 03:31:34 -04:00
parent 10804c4b25
commit 1e678905c4

View File

@@ -197,7 +197,7 @@ func Basename(p string) string {
if p == "" {
return ""
}
if p[len(p)-1:] == "/" { // don't loose the tail slash
if p[len(p)-1:] == "/" { // don't lose the tail slash
b += "/"
}
return b