all: Fix minor typos

This commit is contained in:
Phil Davis
2020-12-16 16:56:32 +05:45
committed by GitHub
parent 21fa1e86f2
commit 04b89857e1
67 changed files with 124 additions and 124 deletions

View File

@@ -105,7 +105,7 @@ func (p *PathSpec) URLize(uri string) string {
return p.URLEscape(p.MakePathSanitized(uri))
}
// URLizeFilename creates an URL from a filename by esacaping unicode letters
// URLizeFilename creates an URL from a filename by escaping unicode letters
// and turn any filepath separator into forward slashes.
func (p *PathSpec) URLizeFilename(filename string) string {
return p.URLEscape(filepath.ToSlash(filename))
@@ -280,7 +280,7 @@ func AddContextRoot(baseURL, relativePath string) string {
newPath := path.Join(url.Path, relativePath)
// path strips traling slash, ignore root path.
// path strips trailing slash, ignore root path.
if newPath != "/" && strings.HasSuffix(relativePath, "/") {
newPath += "/"
}