mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-23 21:53:09 +02:00
resource: Fix typo in comment
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
517b6b6238
commit
912147ab89
@@ -112,7 +112,7 @@ Some examples:
|
|||||||
* To find one resource by its prefix in the root dir of the bundle: .GetMatch image*
|
* 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`
|
* 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.
|
// "logo" will match logo.png. It returns nil of none found.
|
||||||
// In potential ambiguous situations, combine it with ByType.
|
// In potential ambiguous situations, combine it with ByType.
|
||||||
func (r Resources) GetByPrefix(prefix string) Resource {
|
func (r Resources) GetByPrefix(prefix string) Resource {
|
||||||
|
Reference in New Issue
Block a user