Skip to content

Commit e095c71

Browse files
committed
Associated items and variants inherit visibility from their traits and enums respectively.
1 parent 8323185 commit e095c71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/reference.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1732,7 +1732,7 @@ warnings are generated, or otherwise "you used a private item of another module
17321732
and weren't allowed to."
17331733

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

0 commit comments

Comments
 (0)