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() }
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]
247247Rust allows publicly re-exporting items through a ` pub use ` directive. Because
248248this is a public directive, this allows the item to be used in the current
249249module through the rules above. It essentially allows public access into the
@@ -264,7 +264,7 @@ mod implementation {
264264This means that any external crate referencing ` implementation::api::f ` would
265265receive a privacy violation, while the path ` api::f ` would be allowed.
266266
267- r[ vis.export.priv ]
267+ r[ vis.reexports.private-item ]
268268When re-exporting a private item, it can be thought of as allowing the "privacy
269269chain" being short-circuited through the reexport instead of passing through
270270the namespace hierarchy as it normally would.
You can’t perform that action at this time.
0 commit comments