Skip to content

Commit 49456a4

Browse files
authored
Fix typo: do_no_recommend -> do_not_recommend
Noticed this while reading the diagnostics documentation and wanted to send in a quick fix.
1 parent 4d92113 commit 49456a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/attributes/diagnostics.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ error[E0277]: the trait bound `&str: AsExpression<Integer>` is not satisfied
662662
= help: for that trait implementation, expected `Text`, found `Integer`
663663
```
664664

665-
The first error message includes a somewhat confusing error message about the relationship of `&str` and `Expression`, as well as the unsatisfied trait bound in the blanket impl. After adding `#[diagnostic::do_no_recommend]`, it no longer considers the blanket impl for the recommendation. The message should be a little clearer, with an indication that a string cannot be converted to an `Integer`.
665+
The first error message includes a somewhat confusing error message about the relationship of `&str` and `Expression`, as well as the unsatisfied trait bound in the blanket impl. After adding `#[diagnostic::do_not_recommend]`, it no longer considers the blanket impl for the recommendation. The message should be a little clearer, with an indication that a string cannot be converted to an `Integer`.
666666

667667
[Clippy]: https://github.com/rust-lang/rust-clippy
668668
[_MetaListNameValueStr_]: ../attributes.md#meta-item-attribute-syntax

0 commit comments

Comments
 (0)