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?"