Skip to content

Commit 6ee3c28

Browse files
committed
rollup merge of rust-lang#17698 : jistr/guide_export
2 parents 979f7cd + ac956c0 commit 6ee3c28

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/doc/guide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2725,7 +2725,8 @@ mod hello {
27252725
}
27262726
```
27272727

2728-
This will work:
2728+
Usage of the `pub` keyword is sometimes called 'exporting', because
2729+
we're making the function available for other modules. This will work:
27292730

27302731
```{notrust,ignore}
27312732
$ cargo run
@@ -3289,8 +3290,7 @@ use super::times_four;
32893290

32903291
Because we've made a nested module, we can import functions from the parent
32913292
module by using `super`. Sub-modules are allowed to 'see' private functions in
3292-
the parent. We sometimes call this usage of `use` a 're-export,' because we're
3293-
exporting the name again, somewhere else.
3293+
the parent.
32943294

32953295
We've now covered the basics of testing. Rust's tools are primitive, but they
32963296
work well in the simple cases. There are some Rustaceans working on building

0 commit comments

Comments
 (0)