mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 00:47:28 +01:00
Rename Struct.Optional to Struct.Classy
This commit is contained in:
1 parent
7fc98dee00
commit
db04cf346f
4 files changed
+16
-11
No files matched your search
+4
-4
@@ -318,11 +318,11 @@ func (h *genHelper) genWuffs(dirname string, qualifiedFilenames []string) error
|
||||
if !n.Public() {
|
||||
continue
|
||||
}
|
||||
effect := ""
|
||||
if n.Optional() {
|
||||
effect = "?"
|
||||
classy := ""
|
||||
if n.Classy() {
|
||||
classy = "?"
|
||||
}
|
||||
fmt.Fprintf(out, "pub struct %s%s()\n", n.QID().Str(&h.tm), effect)
|
||||
fmt.Fprintf(out, "pub struct %s%s()\n", n.QID().Str(&h.tm), classy)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user