diff options
| author | Havvy <ryan.havvy@gmail.com> | 2018-06-11 02:44:55 -0700 |
|---|---|---|
| committer | Havvy <ryan.havvy@gmail.com> | 2018-06-11 02:44:55 -0700 |
| commit | 2d7b046d710ef92d69f25aeae0d6a508b97122ef (patch) | |
| tree | 66057a76bba1831ddb097f72089ee02be2185f49 /src/libsyntax | |
| parent | f7df1f38dd2a52709cd83aeb6d6714215fe046bc (diff) | |
| download | rust-2d7b046d710ef92d69f25aeae0d6a508b97122ef.tar.gz rust-2d7b046d710ef92d69f25aeae0d6a508b97122ef.zip | |
Fix typos in previous commit
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/diagnostic_list.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libsyntax/diagnostic_list.rs b/src/libsyntax/diagnostic_list.rs index 35e2b701791..34a6e470ccd 100644 --- a/src/libsyntax/diagnostic_list.rs +++ b/src/libsyntax/diagnostic_list.rs @@ -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 @@ -120,6 +121,7 @@ fixes the error. note="This is a valid meta item for the deprecated attribute." )] fn deprecated_function() {} +``` "##, E0552: r##" |
