From f3226fa5cc106a750d5bd0e4c1b207c4d10c889c Mon Sep 17 00:00:00 2001 From: Brandon Dyck Date: Sun, 24 Mar 2019 20:35:40 -0600 Subject: [PATCH] Updated generated doc comments --- html5/generated.go | 6 +++--- internal/codegen/codegen.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/html5/generated.go b/html5/generated.go index ae26696..1a6a995 100644 --- a/html5/generated.go +++ b/html5/generated.go @@ -117,14 +117,14 @@ func Ul(attribs ...hatmill.Attrib) func(children ...hatmill.Term) *hatmill.Paren } } -// Disabled creates a disabled attribute +// Disabled creates a "disabled" attribute func Disabled() hatmill.Attrib { return hatmill.Attrib{ Key: "disabled", } } -// Id creates a id attribute +// Id creates a "id" attribute func Id(value string) hatmill.Attrib { return hatmill.Attrib{ Key: "id", @@ -132,7 +132,7 @@ func Id(value string) hatmill.Attrib { } } -// Src creates a src attribute +// Src creates a "src" attribute func Src(value string) hatmill.Attrib { return hatmill.Attrib{ Key: "src", diff --git a/internal/codegen/codegen.go b/internal/codegen/codegen.go index 854d2c1..5462490 100644 --- a/internal/codegen/codegen.go +++ b/internal/codegen/codegen.go @@ -63,7 +63,7 @@ func (def AttribDef) Generate(qualified bool) string { boolType = "bool" stringType = "string" - stringTemplate = `// %[1]s creates a %[2]s attribute + stringTemplate = `// %[1]s creates a "%[2]s" attribute func %[1]s(value string) %[3]sAttrib { return %[3]sAttrib{ Key: "%[2]s", @@ -71,7 +71,7 @@ func (def AttribDef) Generate(qualified bool) string { } } ` - boolTemplate = `// %[1]s creates a %[2]s attribute + boolTemplate = `// %[1]s creates a "%[2]s" attribute func %[1]s() %[3]sAttrib { return %[3]sAttrib{ Key: "%[2]s",