Skip to content

Commit 84761dc

Browse files
committed
Replace incorrect term "parent modules" with "ancestor modules".
"Parent" means the first level above, "ancestors" means all the levels above.
1 parent ed22e6f commit 84761dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/visibility-and-privacy.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ With the notion of an item being either public or private, Rust allows item
4848
accesses in two cases:
4949

5050
1. If an item is public, then it can be accessed externally from some module
51-
`m` if you can access all the item's parent modules from `m`. You can
51+
`m` if you can access all the item's ancestor modules from `m`. You can
5252
also potentially be able to name the item through re-exports. See below.
5353
2. If an item is private, it may be accessed by the current module and its
5454
descendants.

0 commit comments

Comments
 (0)