mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-26 22:04:32 +02:00
Fix spelling and go vet errors
This commit is contained in:
committed by
Anthony Fok
parent
0d415e453b
commit
bac1ba4655
@@ -1209,7 +1209,7 @@ func trim(a interface{}, b string) (string, error) {
|
||||
return strings.Trim(aStr, b), nil
|
||||
}
|
||||
|
||||
// replace all occurences of b with c in a
|
||||
// replace all occurrences of b with c in a
|
||||
func replace(a, b, c interface{}) (string, error) {
|
||||
aStr, err := cast.ToStringE(a)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user