Skip to content

Commit

Permalink
fix typo in RenderFile docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vieiralucas authored and cbroglie committed Aug 30, 2023
1 parent 2926dd6 commit d50b8fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mustache.go
Original file line number Diff line number Diff line change
Expand Up @@ -928,8 +928,8 @@ func RenderInLayoutPartials(data string, layoutData string, partials PartialProv
}

// RenderFile loads a mustache template string from a file and compiles it, and
// then uses the the given data source - generally a map or struct - to render
// the template and return the output.
// then uses the given data source - generally a map or struct - to render the
// template and return the output.
func RenderFile(filename string, context ...interface{}) (string, error) {
tmpl, err := ParseFile(filename)
if err != nil {
Expand Down

0 comments on commit d50b8fb

Please sign in to comment.