mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
Document awkward names
This commit is contained in:
parent
d8c6e192f7
commit
86cc93ebe3
@ -403,6 +403,18 @@ Default names:
|
|||||||
* `n_foo` -- number of foos
|
* `n_foo` -- number of foos
|
||||||
* `foo_idx` -- index of `foo`
|
* `foo_idx` -- index of `foo`
|
||||||
|
|
||||||
|
Many names in rust-analyzer conflict with keywords.
|
||||||
|
We use mangled names instead of `r#ident` syntax:
|
||||||
|
|
||||||
|
```
|
||||||
|
struct -> strukt
|
||||||
|
crate -> krate
|
||||||
|
impl -> imp
|
||||||
|
trait -> trait_
|
||||||
|
fn -> func
|
||||||
|
enum -> enum_
|
||||||
|
mod -> module
|
||||||
|
```
|
||||||
|
|
||||||
## Early Returns
|
## Early Returns
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user