diff --git a/src/items/modules.md b/src/items/modules.md index 4ab8ea128..43a960b22 100644 --- a/src/items/modules.md +++ b/src/items/modules.md @@ -1,8 +1,14 @@ # Modules -A module is a container for zero or more [items]. +> **Syntax:** +> _Module_ : +>       `mod` [IDENTIFIER] `;` +>    | `mod` [IDENTIFIER] `{` +>         [_InnerAttribute_]\* +>         [_Item_]\* +>       `}` -[items]: items.html +A module is a container for zero or more [items]. A _module item_ is a module, surrounded in braces, named, and prefixed with the keyword `mod`. A module item introduces a new, named module into the tree of @@ -61,3 +67,11 @@ mod thread { mod local_data; } ``` + +[IDENTIFIER]: identifiers.html + +[_InnerAttribute_]: attributes.html +[_OuterAttribute_]: attributes.html + +[_Item_]: items.html +[items]: items.html