Mention super/crate/self in docs
This commit is contained in:
parent
63d5beec43
commit
bc06674774
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ pub struct Foo4;
|
|||
pub struct Bar;
|
||||
```
|
||||
|
||||
You can refer to anything in scope, and use paths, including `Self`. You may also use `foo()` and `foo!()` to refer to methods/functions and macros respectively.
|
||||
You can refer to anything in scope, and use paths, including `Self`, `self`, `super`, and `crate`. You may also use `foo()` and `foo!()` to refer to methods/functions and macros respectively.
|
||||
|
||||
```rust,edition2018
|
||||
use std::sync::mpsc::Receiver;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue