Skip to content

Commit da6b750

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mod/use.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ access. It is often used like this:
66
```rust,editable,ignore
77
// extern crate deeply; // normally, this would exist and not be commented out!
88
9-
use deeply::nested::{
9+
use crate::deeply::nested::{
1010
my_first_function,
1111
my_second_function,
1212
AndATraitType
@@ -43,7 +43,7 @@ fn main() {
4343
{
4444
// This is equivalent to `use deeply::nested::function as function`.
4545
// This `function()` will shadow the outer one.
46-
use deeply::nested::function;
46+
use crate::deeply::nested::function;
4747
function();
4848
4949
// `use` bindings have a local scope. In this case, the

0 commit comments

Comments
 (0)