Skip to content

Commit f90de3a

Browse files
committed
Fix grammar in the "Visibility and Privacy" section.
"This equivalent" -> "This is equivalent" Notes: * The same phrase is used in the next bullet. * I have re-wrapped the line as it was too long after the added "is".
1 parent ce27a34 commit f90de3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/visibility-and-privacy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ visible within a given scope. The rules for `pub` restrictions are as follows:
150150
- `pub(in path)` makes an item visible within the provided `path`. `path` must
151151
be a parent module of the item whose visibility is being declared.
152152
- `pub(crate)` makes an item visible within the current crate.
153-
- `pub(super)` makes an item visible to the parent module. This equivalent to
154-
`pub(in super)`.
153+
- `pub(super)` makes an item visible to the parent module. This is equivalent
154+
to `pub(in super)`.
155155
- `pub(self)` makes an item visible to the current module. This is equivalent
156156
to `pub(in self)`.
157157

0 commit comments

Comments
 (0)