Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "instanciate" is a misspelling of "instantiate" #31

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eval.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions template.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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)

Expand All @@ -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 {
Expand Down