Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit be7865e

Browse files
committed
style: fix typos
1 parent 2dfbcb6 commit be7865e

File tree

1 file changed

+3
-3
lines changed
  • src/tools/rust-analyzer/docs/dev

1 file changed

+3
-3
lines changed

src/tools/rust-analyzer/docs/dev/setup.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,20 @@ Installing <path-to-rust-analyzer-binary>
3434
Installed package `rust-analyzer v0.0.0 (<path-to-rust-analyzer-binary>)` (executable `rust-analyzer.exe`)
3535
```
3636

37-
In Visual Studio Code Insiders, you will want to open your User Settings (JSON) from the Command Palette. From there you should ensure that the `rust-anaylzer.server.path` key is set to the `<path-to-rust-analyzer-binary>`. This will tell Visual Studio Code Insiders to use the locally installed version that you can debug.
37+
In Visual Studio Code Insiders, you will want to open your User Settings (JSON) from the Command Palette. From there you should ensure that the `rust-analyzer.server.path` key is set to the `<path-to-rust-analyzer-binary>`. This will tell Visual Studio Code Insiders to use the locally installed version that you can debug.
3838

3939
The User Settings (JSON) file should contain the following:
4040

4141
```json
4242
{
43-
"rust-analyzer.server.path": "<path-to-rust-anaylzer-binary>"
43+
"rust-analyzer.server.path": "<path-to-rust-analyzer-binary>"
4444
}
4545
```
4646

4747
Now you should be able to make changes to rust-analyzer in Visual Studio Code and then view the changes in Visual Studio Code Insiders.
4848

4949
## Debugging rust-analyzer
50-
The simplist way to debug rust-analyzer is to use the `eprintln!` macro. The reason why we use `eprintln!` instead of `println!` is because the language server uses `stdout` to send messages. So instead we will debug using `stderr`.
50+
The simplest way to debug rust-analyzer is to use the `eprintln!` macro. The reason why we use `eprintln!` instead of `println!` is because the language server uses `stdout` to send messages. So instead we will debug using `stderr`.
5151

5252
An example debugging statement could go into the `main_loop.rs` file which can be found at `crates/rust-analyzer/src/main_loop.rs`. Inside the `main_loop` we will add the following `eprintln!` to test debugging rust-analyzer:
5353

0 commit comments

Comments
 (0)