mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 05:38:46 +00:00
Fix typo in style guide
This commit is contained in:
parent
4dafc57019
commit
6e575d8c73
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ More than one mark per test / code branch doesn't add significantly to understan
|
|||
Do not use `#[should_panic]` tests.
|
||||
Instead, explicitly check for `None`, `Err`, etc.
|
||||
|
||||
**Rationale:**a `#[should_panic]` is a tool for library authors, to makes sure that API does not fail silently, when misused.
|
||||
**Rationale:** `#[should_panic]` is a tool for library authors, to makes sure that API does not fail silently, when misused.
|
||||
`rust-analyzer` is not a library, we don't need to test for API misuse, and we have to handle any user input without panics.
|
||||
Panic messages in the logs from the `#[should_panic]` tests are confusing.
|
||||
|
||||
|
|
Loading…
Reference in a new issue