From d6e30cae44b43cf01866a552d1dcf3d0a612d43f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Br=C3=A1ulio=20Bezerra?= Date: Sat, 22 Jul 2017 11:08:42 -0300 Subject: [PATCH] Added visibility' grammar --- src/visibility-and-privacy.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/visibility-and-privacy.md b/src/visibility-and-privacy.md index 49cc23f1c..08bc0b5bc 100644 --- a/src/visibility-and-privacy.md +++ b/src/visibility-and-privacy.md @@ -1,5 +1,14 @@ # Visibility and Privacy +> **Syntax** +> _Visibility_ : +>       EMPTY +>    | `pub` +>    | `pub` `(` `crate` `)` +>    | `pub` `(` `in` _ModulePath_ `)` +>    | `pub` `(` `in`? `self` `)` +>    | `pub` `(` `in`? `super` `)` + These two terms are often used interchangeably, and what they are attempting to convey is the answer to the question "Can this item be used at this location?"