Skip to content

Commit

Permalink
Rollup merge of rust-lang#38215 - liigo:patch-12, r=petrochenkov
Browse files Browse the repository at this point in the history
minor fix about visibility in reference
  • Loading branch information
GuillaumeGomez authored Dec 18, 2016
2 parents 5f3b2c7 + e095c71 commit d808ae1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/doc/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1731,7 +1731,8 @@ of an item to see whether it should be allowed or not. This is where privacy
warnings are generated, or otherwise "you used a private item of another module
and weren't allowed to."

By default, everything in Rust is *private*, with one exception. Enum variants
By default, everything in Rust is *private*, with two exceptions: Associated
items in a `pub` Trait are public by default; Enum variants
in a `pub` enum are also public by default. When an item is declared as `pub`,
it can be thought of as being accessible to the outside world. For example:

Expand Down

0 comments on commit d808ae1

Please sign in to comment.