From 6e575d8c73fa93e2300c3c61343d7efa7f20b7bf Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Thu, 15 Apr 2021 18:38:52 +0200 Subject: Fix typo in style guide --- docs/dev/style.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/dev/style.md') diff --git a/docs/dev/style.md b/docs/dev/style.md index 7c47c26b2..078c478d4 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. -- cgit v1.2.3