common/paths: Fix docstring

This commit is contained in:
Jack Baldry 2025-01-16 09:58:18 +00:00 committed by GitHub
parent 5c5508817f
commit 8b52626915
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -228,7 +228,7 @@ func UrlFromFilename(filename string) (*url.URL, error) {
}, nil
}
// UrlToFilename converts the URL s to a filename.
// UrlStringToFilename converts the URL s to a filename.
// If ParseRequestURI fails, the input is just converted to OS specific slashes and returned.
func UrlStringToFilename(s string) (string, bool) {
u, err := url.ParseRequestURI(s)