diff options
author | Phil Davis <phil@jankaritech.com> | 2020-12-16 16:56:32 +0545 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-16 12:11:32 +0100 |
commit | 04b89857e104ac7dcbf9fc65d8d4f1a1178123e6 (patch) | |
tree | 585bf761f0a1cfc69dffcd8afd22e94ca9da7c07 /resources/resource_transformers | |
parent | 21fa1e86f2aa929fb0983a0cc3dc4e271ea1cc54 (diff) |
all: Fix minor typos
Diffstat (limited to 'resources/resource_transformers')
-rw-r--r-- | resources/resource_transformers/babel/babel.go | 4 | ||||
-rw-r--r-- | resources/resource_transformers/minifier/minify.go | 2 | ||||
-rw-r--r-- | resources/resource_transformers/postcss/postcss.go | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/resources/resource_transformers/babel/babel.go b/resources/resource_transformers/babel/babel.go index a7598f820..64d8667bd 100644 --- a/resources/resource_transformers/babel/babel.go +++ b/resources/resource_transformers/babel/babel.go @@ -131,11 +131,11 @@ func (t *babelTransformation) Transform(ctx *resources.ResourceTransformationCtx configFile = filepath.Clean(configFile) - // We need an abolute filename to the config file. + // We need an absolute filename to the config file. if !filepath.IsAbs(configFile) { configFile = t.rs.BaseFs.ResolveJSConfigFile(configFile) if configFile == "" && t.options.Config != "" { - // Only fail if the user specificed config file is not found. + // Only fail if the user specified config file is not found. return errors.Errorf("babel config %q not found:", configFile) } } diff --git a/resources/resource_transformers/minifier/minify.go b/resources/resource_transformers/minifier/minify.go index 51a3f4047..972461e0e 100644 --- a/resources/resource_transformers/minifier/minify.go +++ b/resources/resource_transformers/minifier/minify.go @@ -20,7 +20,7 @@ import ( "github.com/gohugoio/hugo/resources/resource" ) -// Client for minification of Resource objects. Supported minfiers are: +// Client for minification of Resource objects. Supported minifiers are: // css, html, js, json, svg and xml. type Client struct { rs *resources.Spec diff --git a/resources/resource_transformers/postcss/postcss.go b/resources/resource_transformers/postcss/postcss.go index 8ba40ebd1..27864b0c5 100644 --- a/resources/resource_transformers/postcss/postcss.go +++ b/resources/resource_transformers/postcss/postcss.go @@ -166,11 +166,11 @@ func (t *postcssTransformation) Transform(ctx *resources.ResourceTransformationC configFile = filepath.Clean(configFile) - // We need an abolute filename to the config file. + // We need an absolute filename to the config file. if !filepath.IsAbs(configFile) { configFile = t.rs.BaseFs.ResolveJSConfigFile(configFile) if configFile == "" && t.options.Config != "" { - // Only fail if the user specificed config file is not found. + // Only fail if the user specified config file is not found. return errors.Errorf("postcss config %q not found:", configFile) } } |