Mention super/crate/self in docs

This commit is contained in:
Manish Goregaokar 2020-07-17 10:49:51 -07:00
parent 63d5beec43
commit bc06674774

View file

@ -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;