Skip to content

Commit 1916cc9

Browse files
committed
Reworded stuff.
1 parent 363d874 commit 1916cc9

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/doc/reference/src/visibility-and-privacy.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,9 @@ pub enum State {
3939
With the notion of an item being either public or private, Rust allows item
4040
accesses in two cases:
4141

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.
4745
2. If an item is private, it may be accessed by the current module and its
4846
descendants.
4947

0 commit comments

Comments
 (0)