Skip to content

Commit

Permalink
Clarify "Defaults to" generated doc (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
kainino0x authored Nov 25, 2024
1 parent c4ac882 commit ccbb369
Show file tree
Hide file tree
Showing 2 changed files with 276 additions and 276 deletions.
2 changes: 1 addition & 1 deletion gen/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (g *Generator) Gen(dst io.Writer) error {
s += "\n\nThis is an \\ref OutputString."
}

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

if member.PassedWithOwnership != nil {
panic("invalid")
Expand Down
Loading

0 comments on commit ccbb369

Please sign in to comment.