Skip to content

Commit

Permalink
More E0541 long diagnostic wording tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Havvy committed Jun 11, 2018
1 parent 0c91bd2 commit cf3fcab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libsyntax/diagnostic_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@ Erroneous code example:
fn deprecated_function() {}
```
Meta items are the key/value pairs inside of an attribute. The keys provided
Meta items are the key-value pairs inside of an attribute. The keys provided
must be one of the valid keys for the specified attribute.
To fix the problem, either remove the unknown meta item, or rename it if you
provided the wrong name.
In the erroneous code example above, the wrong name was provided, so changing it
to the right name fixes the error.
In the erroneous code example above, the wrong name was provided, so changing
to a correct one it will fix the error. Example:
```
#[deprecated(
Expand Down

0 comments on commit cf3fcab

Please sign in to comment.