Skip to content

Commit ccbb369

Browse files
authored
Clarify "Defaults to" generated doc (#436)
1 parent c4ac882 commit ccbb369

File tree

2 files changed

+276
-276
lines changed

2 files changed

+276
-276
lines changed

gen/gen.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func (g *Generator) Gen(dst io.Writer) error {
122122
s += "\n\nThis is an \\ref OutputString."
123123
}
124124

125-
s += "\n\nDefaults to " + g.DefaultValue(*member, true /* isDocString */) + "."
125+
s += "\n\nThe `INIT` macro sets this to " + g.DefaultValue(*member, true /* isDocString */) + "."
126126

127127
if member.PassedWithOwnership != nil {
128128
panic("invalid")

0 commit comments

Comments
 (0)