From 4e439734130eadea4ef74cdb54a2496ecad6e8cd Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 25 Jan 2016 23:56:46 -0700 Subject: variable initializations are now mandatory use `undefined` if you want uninitialized memory --- doc/langref.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') 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) "}" -- cgit v1.2.3