resource: Fix typo in comment - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit 912147ab896e69a450b7100c3d6bf81a7bf78b5a
DIR parent 517b6b62389d23bfe41fe3ae551a691b11bdcaa7
HTML Author: Alexey Grachov <grachov.alexey@gmail.com>
Date: Wed, 24 Jan 2018 11:24:21 +0200
resource: Fix typo in comment
Diffstat:
M resource/resource.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/resource/resource.go b/resource/resource.go
@@ -112,7 +112,7 @@ Some examples:
* To find one resource by its prefix in the root dir of the bundle: .GetMatch image*
* To find all JPEG images anywhere in the bundle: .Match **.jpg`
-// GetBySuffix gets the first resource matching the given filename prefix, e.g
+// GetByPrefix gets the first resource matching the given filename prefix, e.g
// "logo" will match logo.png. It returns nil of none found.
// In potential ambiguous situations, combine it with ByType.
func (r Resources) GetByPrefix(prefix string) Resource {