Skip to content

Commit 0386028

Browse files
Rollup merge of rust-lang#38215 - liigo:patch-12, r=petrochenkov
minor fix about visibility in reference
2 parents 35c56a6 + e095c71 commit 0386028

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/doc/reference.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1731,7 +1731,8 @@ of an item to see whether it should be allowed or not. This is where privacy
17311731
warnings are generated, or otherwise "you used a private item of another module
17321732
and weren't allowed to."
17331733

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

0 commit comments

Comments
 (0)