Skip to content

Commit 45d1e66

Browse files
committed
Update "use" subchapter to 2018 Edition syntax
1 parent b919141 commit 45d1e66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mod/super.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ mod my {
4444
// This will bind to the `cool::function` in the *crate* scope.
4545
// In this case the crate scope is the outermost scope.
4646
{
47-
use cool::function as root_function;
47+
use crate::cool::function as root_function;
4848
root_function();
4949
}
5050
}
@@ -53,4 +53,4 @@ mod my {
5353
fn main() {
5454
my::indirect_call();
5555
}
56-
```
56+
```

0 commit comments

Comments
 (0)