aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-05-07 17:00:58 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-05-07 17:00:58 -0700
commit2ed72022ce56b06bb3e90ca9259065452e209eb9 (patch)
treee583301a3d037577ee8aff73f5ad91177d72c98f /doc
parent01c46eef3a7e4fd5a96f364541c539746ae1ea3b (diff)
downloadzig-2ed72022ce56b06bb3e90ca9259065452e209eb9.tar.gz
zig-2ed72022ce56b06bb3e90ca9259065452e209eb9.zip
support generic data structures
See #22
Diffstat (limited to 'doc')
-rw-r--r--doc/langref.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/langref.md b/doc/langref.md
index d17317b4f9..ddadcb6c5e 100644
--- a/doc/langref.md
+++ b/doc/langref.md
@@ -15,7 +15,7 @@ GlobalVarDecl = VariableDeclaration ";"
VariableDeclaration = ("var" | "const") "Symbol" option(":" TypeExpr) "=" Expression
-ContainerDecl = ("struct" | "enum" | "union") "Symbol" "{" many(StructMember) "}"
+ContainerDecl = ("struct" | "enum" | "union") "Symbol" option(ParamDeclList) "{" many(StructMember) "}"
StructMember = many(Directive) option(VisibleMod) (StructField | FnDef)