File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2725,7 +2725,8 @@ mod hello {
2725
2725
}
2726
2726
```
2727
2727
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:
2729
2730
2730
2731
``` {notrust,ignore}
2731
2732
$ cargo run
@@ -3289,8 +3290,7 @@ use super::times_four;
3289
3290
3290
3291
Because we've made a nested module, we can import functions from the parent
3291
3292
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.
3294
3294
3295
3295
We've now covered the basics of testing. Rust's tools are primitive, but they
3296
3296
work well in the simple cases. There are some Rustaceans working on building
You can’t perform that action at this time.
0 commit comments