diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-01-25 23:56:46 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-01-25 23:56:46 -0700 |
| commit | 4e439734130eadea4ef74cdb54a2496ecad6e8cd (patch) | |
| tree | 0a87721ad11697108f7ab070ba31f335b1575e45 /doc | |
| parent | b215a3e0b6b3d79f4ffdaf3a092b8aa283aafb7b (diff) | |
| download | zig-4e439734130eadea4ef74cdb54a2496ecad6e8cd.tar.gz zig-4e439734130eadea4ef74cdb54a2496ecad6e8cd.zip | |
variable initializations are now mandatory
use `undefined` if you want uninitialized memory
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/langref.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/langref.md b/doc/langref.md index 647b31acbc..4dae123f1f 100644 --- a/doc/langref.md +++ b/doc/langref.md @@ -9,7 +9,7 @@ TopLevelDecl : FnDef | ExternBlock | RootExportDecl | Import | ContainerDecl | V ErrorValueDecl : option(FnVisibleMod) "error" "Symbol" -VariableDeclaration : option(FnVisibleMod) ("var" | "const") "Symbol" ("=" Expression | ":" PrefixOpExpression option("=" Expression)) +VariableDeclaration : option(FnVisibleMod) ("var" | "const") "Symbol" option(":" PrefixOpExpression) "=" Expression ContainerDecl : many(Directive) option(FnVisibleMod) ("struct" | "enum") "Symbol" "{" many(StructMember) "}" |
