Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix typos in previous commit
  • Loading branch information
Havvy committed Jun 11, 2018
1 parent f7df1f3 commit 2d7b046
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libsyntax/diagnostic_list.rs
Expand Up @@ -104,11 +104,12 @@ Erroneous code example:
reason="Example invalid meta item. Should be 'note'") // error: unknown meta item
]
fn deprecated_function() {}
```
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 it you provided the wrong
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
Expand All @@ -120,6 +121,7 @@ fixes the error.
note="This is a valid meta item for the deprecated attribute."
)]
fn deprecated_function() {}
```
"##,

E0552: r##"
Expand Down

0 comments on commit 2d7b046

Please sign in to comment.