File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,9 @@ pub enum State {
39
39
With the notion of an item being either public or private, Rust allows item
40
40
accesses in two cases:
41
41
42
- 1 . If an item is public, then it can be used externally through any of its
43
- accessible ancestors (either by anyone that has an access to an ancestor
44
- in the case of a chain of public ancestors,
45
- or by the siblings of a private ancestor, in the case of a chain of public
46
- ancestors terminating into a private ancestor).
42
+ 1 . If an item is public, then it can be accessed externally from some module
43
+ ` m ` if you can access all the item's parent modules from ` m ` . You can
44
+ also potentially be able to name the item through re-exports. See below.
47
45
2 . If an item is private, it may be accessed by the current module and its
48
46
descendants.
49
47
You can’t perform that action at this time.
0 commit comments