Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
marwan-at-work committed Apr 15, 2019
1 parent e69b739 commit 37fd067
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions codegen/templates/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ type Options struct {
}

// Render renders a gql plugin template from the given Options. Render is an
// abstraction of the text/template package that makes it easier to gqlgen plugins.
// If Options.Template is empty, the Render function will look for `.gotpl` files
// inside the directory where you wrote the plugin.
// abstraction of the text/template package that makes it easier to write gqlgen
// plugins. If Options.Template is empty, the Render function will look for `.gotpl`
// files inside the directory where you wrote the plugin.
func Render(cfg Options) error {
if CurrentImports != nil {
panic(fmt.Errorf("recursive or concurrent call to RenderToFile detected"))
Expand Down

0 comments on commit 37fd067

Please sign in to comment.