File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -241,9 +241,9 @@ fn main() { bar() }
241
241
242
242
## Re-exporting and Visibility
243
243
244
- r[ vis.export ]
244
+ r[ vis.reexports ]
245
245
246
- r[ vis.export .intro]
246
+ r[ vis.reexports .intro]
247
247
Rust allows publicly re-exporting items through a ` pub use ` directive. Because
248
248
this is a public directive, this allows the item to be used in the current
249
249
module through the rules above. It essentially allows public access into the
@@ -264,7 +264,7 @@ mod implementation {
264
264
This means that any external crate referencing ` implementation::api::f ` would
265
265
receive a privacy violation, while the path ` api::f ` would be allowed.
266
266
267
- r[ vis.export.priv ]
267
+ r[ vis.reexports.private-item ]
268
268
When re-exporting a private item, it can be thought of as allowing the "privacy
269
269
chain" being short-circuited through the reexport instead of passing through
270
270
the namespace hierarchy as it normally would.
You can’t perform that action at this time.
0 commit comments