Skip to content

Commit 67426bc

Browse files
authored
Tweak rule names
In discussion with TC, we felt that these names were more descriptive of the sections they are in.
1 parent 4f27195 commit 67426bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/visibility-and-privacy.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,9 @@ fn main() { bar() }
241241
242242
## Re-exporting and Visibility
243243

244-
r[vis.export]
244+
r[vis.reexports]
245245

246-
r[vis.export.intro]
246+
r[vis.reexports.intro]
247247
Rust allows publicly re-exporting items through a `pub use` directive. Because
248248
this is a public directive, this allows the item to be used in the current
249249
module through the rules above. It essentially allows public access into the
@@ -264,7 +264,7 @@ mod implementation {
264264
This means that any external crate referencing `implementation::api::f` would
265265
receive a privacy violation, while the path `api::f` would be allowed.
266266

267-
r[vis.export.priv]
267+
r[vis.reexports.private-item]
268268
When re-exporting a private item, it can be thought of as allowing the "privacy
269269
chain" being short-circuited through the reexport instead of passing through
270270
the namespace hierarchy as it normally would.

0 commit comments

Comments
 (0)