Skip to content
Prev Previous commit
Next Next commit
Mention super/crate/self in docs
  • Loading branch information
Manishearth committed Sep 14, 2020
commit bc06674774e6457046e41a48dc3e8be8c5496f11
2 changes: 1 addition & 1 deletion src/doc/rustdoc/src/linking-to-items-by-name.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down