Skip to content

Commit f41afd4

Browse files
authored
Update another usage of "parent" to "ancestor"
1 parent 84761dc commit f41afd4

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
@@ -148,7 +148,7 @@ In addition to public and private, Rust allows users to declare an item as
148148
visible only within a given scope. The rules for `pub` restrictions are as
149149
follows:
150150
- `pub(in path)` makes an item visible within the provided `path`. `path` must
151-
be a parent module of the item whose visibility is being declared.
151+
be an ancestor module of the item whose visibility is being declared.
152152
- `pub(crate)` makes an item visible within the current crate.
153153
- `pub(super)` makes an item visible to the parent module. This is equivalent
154154
to `pub(in super)`.

0 commit comments

Comments
 (0)