Skip to content

Commit 2d7b046

Browse files
committed
Fix typos in previous commit
1 parent f7df1f3 commit 2d7b046

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: src/libsyntax/diagnostic_list.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,12 @@ Erroneous code example:
104104
reason="Example invalid meta item. Should be 'note'") // error: unknown meta item
105105
]
106106
fn deprecated_function() {}
107+
```
107108
108109
Meta items are the key/value pairs inside of an attribute. The keys provided must be one of the
109110
valid keys for the specified attribute.
110111
111-
To fix the problem, either remove the unknown meta item, or rename it it you provided the wrong
112+
To fix the problem, either remove the unknown meta item, or rename it if you provided the wrong
112113
name.
113114
114115
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.
120121
note="This is a valid meta item for the deprecated attribute."
121122
)]
122123
fn deprecated_function() {}
124+
```
123125
"##,
124126

125127
E0552: r##"

0 commit comments

Comments
 (0)