Skip to content

Commit bc06674

Browse files
committed
Mention super/crate/self in docs
1 parent 63d5bee commit bc06674

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/rustdoc/src/linking-to-items-by-name.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub struct Foo4;
2222
pub struct Bar;
2323
```
2424

25-
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.
25+
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.
2626

2727
```rust,edition2018
2828
use std::sync::mpsc::Receiver;

0 commit comments

Comments
 (0)