Skip to content

Commit

Permalink
Merge pull request #1359 from 16yuki0702/modify_comments
Browse files Browse the repository at this point in the history
Modify comments
  • Loading branch information
marioidival authored Jul 6, 2020
2 parents 6f94ccb + 4f01c6b commit 229c694
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mod/use.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ fn main() {
// This is equivalent to `use deeply::nested::function as function`.
// This `function()` will shadow the outer one.
use crate::deeply::nested::function;
function();
// `use` bindings have a local scope. In this case, the
// shadowing of `function()` is only in this block.
function();
println!("Leaving block");
}
Expand Down

0 comments on commit 229c694

Please sign in to comment.