From 23598f793b15933aa9bff2b3dfca1c0c8fd70d2d Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Sat, 2 Feb 2019 04:18:22 +0200 Subject: [PATCH 1/2] fix "instanciate" is a misspelling of "instantiate" --- template.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/template.go b/template.go index f16ed2f..1b67d80 100644 --- a/template.go +++ b/template.go @@ -20,7 +20,7 @@ type Template struct { mutex sync.RWMutex // protects helpers and partials } -// newTemplate instanciate a new template without parsing it +// newTemplate instantiates a new template without parsing it func newTemplate(source string) *Template { return &Template{ source: source, @@ -29,7 +29,7 @@ func newTemplate(source string) *Template { } } -// Parse instanciates a template by parsing given source. +// Parse instantiates a template by parsing given source. func Parse(source string) (*Template, error) { tpl := newTemplate(source) @@ -41,7 +41,7 @@ func Parse(source string) (*Template, error) { return tpl, nil } -// MustParse instanciates a template by parsing given source. It panics on error. +// MustParse instantiates a template by parsing given source. It panics on error. func MustParse(source string) *Template { result, err := Parse(source) if err != nil { From 41d8be6ce544d93f5f788367589f43b2ad359b66 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Sat, 2 Feb 2019 04:19:35 +0200 Subject: [PATCH 2/2] fix "instanciate" is a misspelling of "instantiate" on eval.go --- eval.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eval.go b/eval.go index e689c31..1995d7f 100644 --- a/eval.go +++ b/eval.go @@ -44,7 +44,7 @@ type evalVisitor struct { curNode ast.Node } -// NewEvalVisitor instanciate a new evaluation visitor with given context and initial private data frame +// NewEvalVisitor instantiates a new evaluation visitor with given context and initial private data frame // // If privData is nil, then a default data frame is created func newEvalVisitor(tpl *Template, ctx interface{}, privData *DataFrame) *evalVisitor {