Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tpl
diff options
context:
space:
mode:
authorEvgeny Kuznetsov <evgeny@kuznetsov.md>2020-09-14 20:34:32 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-09-14 20:54:48 +0300
commitcd830bb0275fc39240861627ef26e146985b5c86 (patch)
tree9dafec6d91c1e896eb0340554c0b147d8d167feb /tpl
parenta8458bfb25ca0ed99072831ef7fec1d5a4377d9d (diff)
tpl: Fix grammar in the new 'requires non-zero' error message
Diffstat (limited to 'tpl')
-rw-r--r--tpl/partials/partials.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tpl/partials/partials.go b/tpl/partials/partials.go
index 648a93686..8b545399e 100644
--- a/tpl/partials/partials.go
+++ b/tpl/partials/partials.go
@@ -123,7 +123,7 @@ func (ns *Namespace) Include(name string, contextList ...interface{}) (interface
if info.HasReturn {
if !hreflect.IsTruthful(context) {
// TODO(bep) we need to fix this, but it is non-trivial.
- return nil, errors.New("partials that returns a value needs a non-zero argument.")
+ return nil, errors.New("partial that returns a value needs a non-zero argument.")
}
// Wrap the context sent to the template to capture the return value.
// Note that the template is rewritten to make sure that the dot (".")