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 @@ -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
32903291Because we've made a nested module, we can import functions from the parent
32913292module 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
32953295We've now covered the basics of testing. Rust's tools are primitive, but they
32963296work well in the simple cases. There are some Rustaceans working on building
You can’t perform that action at this time.
0 commit comments