mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-21 08:47:28 +01:00
lang/parse: struct private data now needs a "+"
This commit is contained in:
1 parent
f5eb38d76e
commit
49fa501f0d
13 files changed
+18
-12
No files matched your search
@@ -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).
|
||||
|
||||
|
||||
@@ -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).
|
||||
|
||||
Reference in new issue
Block a user