Skip to content

Commit b0fc4d9

Browse files
Fix grammar in pub(restricted) clarification
Co-Authored-By: Speedy-Consoles <[email protected]>
1 parent e5b3fca commit b0fc4d9

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
@@ -179,7 +179,7 @@ pub mod outer_mod {
179179
}
180180

181181
// This function is visible only within `inner_mod`,
182-
// which is the same as leaving it private
182+
// which is the same as leaving it private.
183183
pub(self) fn inner_mod_visible_fn() {}
184184
}
185185
pub fn foo() {
@@ -213,7 +213,7 @@ fn main() { bar() }
213213

214214
Note that this syntax only adds another restriction to the visibility of an
215215
item. It does not guarantee that the item is visible within all parts of the
216-
specified scope. In order to access an item all of its parent items up to the
216+
specified scope. To access an item, all of its parent items up to the
217217
current scope must still be visible as well.
218218

219219
## Re-exporting and Visibility

0 commit comments

Comments
 (0)