lang/parse: struct private data now needs a "+"

This commit is contained in:
Nigel Tao committed 2023-04-09 15:45:06 +10:00
1 parent f5eb38d76e
commit 49fa501f0d
13 files changed
+18 -12

No files matched your search

+1
View File
@@ -6,6 +6,7 @@
The dot points below probably aren't of interest unless you're _writing_ Wuffs
code (instead of writing C/C++ code that _uses_ Wuffs' standard library).
- Wuffs struct private data now needs a "+" between the "()" pairs.
- `wuffsfmt` double-indents hanging lines and each indent is now 4 spaces (not
a tab).
+1 -1
View File
@@ -49,7 +49,7 @@ to a 100-element array of unsigned 32-bit integers. Types can also be
## Structs
Structs are a list of fields, enclosed in parentheses: `struct foo(x: base.u32,
y: base.u32)`, possibly extended with a second list of [optionally
y: base.u32)`, possibly extended (by a `+`) with a second list of [optionally
initialized](/doc/note/initialization.md#partial-zero-initialization) fields.
The struct name, `foo`, may be followed by a question mark `?`, which means
that its methods may be [coroutines](/doc/note/coroutines.md).