mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
common/paths: Fix docstring
This commit is contained in:
@@ -228,7 +228,7 @@ func UrlFromFilename(filename string) (*url.URL, error) {
|
|||||||
}, nil
|
}, 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.
|
// If ParseRequestURI fails, the input is just converted to OS specific slashes and returned.
|
||||||
func UrlStringToFilename(s string) (string, bool) {
|
func UrlStringToFilename(s string) (string, bool) {
|
||||||
u, err := url.ParseRequestURI(s)
|
u, err := url.ParseRequestURI(s)
|
||||||
|
Reference in New Issue
Block a user