diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/dev/README.md | 5 | ||||
-rw-r--r-- | docs/user/manual.adoc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/docs/dev/README.md b/docs/dev/README.md index 11dc5261b..6b6824ded 100644 --- a/docs/dev/README.md +++ b/docs/dev/README.md | |||
@@ -254,6 +254,11 @@ The default name is a lowercased name of the type: `global_state: GlobalState`. | |||
254 | Avoid ad-hoc acronyms and contractions, but use the ones that exist consistently (`db`, `ctx`, `acc`). | 254 | Avoid ad-hoc acronyms and contractions, but use the ones that exist consistently (`db`, `ctx`, `acc`). |
255 | The default name for "result of the function" local variable is `res`. | 255 | The default name for "result of the function" local variable is `res`. |
256 | 256 | ||
257 | ## Collection types | ||
258 | |||
259 | We prefer `rustc_hash::FxHashMap` and `rustc_hash::FxHashSet` instead of the ones in `std::collections`. | ||
260 | They use a hasher that's slightly faster and using them consistently will reduce code size by some small amount. | ||
261 | |||
257 | ## Preconditions | 262 | ## Preconditions |
258 | 263 | ||
259 | Function preconditions should generally be expressed in types and provided by the caller (rather than checked by callee): | 264 | Function preconditions should generally be expressed in types and provided by the caller (rather than checked by callee): |
diff --git a/docs/user/manual.adoc b/docs/user/manual.adoc index 0dc1dc2ae..b763958fe 100644 --- a/docs/user/manual.adoc +++ b/docs/user/manual.adoc | |||
@@ -57,7 +57,7 @@ To disable this notification put the following to `settings.json` | |||
57 | The server binary is stored in: | 57 | The server binary is stored in: |
58 | 58 | ||
59 | * Linux: `~/.config/Code/User/globalStorage/matklad.rust-analyzer` | 59 | * Linux: `~/.config/Code/User/globalStorage/matklad.rust-analyzer` |
60 | * macOS: `~/Library/Application Support/Code/User/globalStorage/matklad.rust-analyzer` | 60 | * macOS: `~/Library/Application\ Support/Code/User/globalStorage/matklad.rust-analyzer` |
61 | * Windows: `%APPDATA%\Code\User\globalStorage\matklad.rust-analyzer` | 61 | * Windows: `%APPDATA%\Code\User\globalStorage\matklad.rust-analyzer` |
62 | 62 | ||
63 | Note that we only support two most recent versions of VS Code. | 63 | Note that we only support two most recent versions of VS Code. |