Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/visibility-and-privacy.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Visibility and Privacy

> **<sup>Syntax<sup>**
> _Visibility_ :
> &nbsp;&nbsp; &nbsp;&nbsp; EMPTY
> &nbsp;&nbsp; | `pub`
> &nbsp;&nbsp; | `pub` `(` `crate` `)`
> &nbsp;&nbsp; | `pub` `(` `in` _ModulePath_ `)`
> &nbsp;&nbsp; | `pub` `(` `in`<sup>?</sup> `self` `)`
> &nbsp;&nbsp; | `pub` `(` `in`<sup>?</sup> `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?"

Expand Down