diff options
| author | Jonas Schievink <jonasschievink@gmail.com> | 2021-04-15 18:38:52 +0200 |
|---|---|---|
| committer | Jonas Schievink <jonasschievink@gmail.com> | 2021-04-15 18:38:52 +0200 |
| commit | 6e575d8c73fa93e2300c3c61343d7efa7f20b7bf (patch) | |
| tree | 89b7a3aef97d715c53a83ec5a78c19693d07e0bb /docs/dev | |
| parent | 4dafc57019a54fa7778fc8a9c844de42ff205175 (diff) | |
| download | rust-6e575d8c73fa93e2300c3c61343d7efa7f20b7bf.tar.gz rust-6e575d8c73fa93e2300c3c61343d7efa7f20b7bf.zip | |
Fix typo in style guide
Diffstat (limited to 'docs/dev')
| -rw-r--r-- | docs/dev/style.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/dev/style.md b/docs/dev/style.md index 7c47c26b2d4..078c478d41b 100644 --- a/docs/dev/style.md +++ b/docs/dev/style.md @@ -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. |
