File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -101,19 +101,20 @@ Erroneous code example:
101101```compile_fail,E0541
102102#[deprecated(
103103 since="1.0.0",
104- reason="Example invalid meta item. Should be 'note'") // error: unknown meta item
104+ // error: unknown meta item
105+ reason="Example invalid meta item. Should be 'note'")
105106]
106107fn deprecated_function() {}
107108```
108109
109- Meta items are the key/value pairs inside of an attribute. The keys provided must be one of the
110- valid keys for the specified attribute.
110+ Meta items are the key/value pairs inside of an attribute. The keys provided
111+ must be one of the valid keys for the specified attribute.
111112
112- To fix the problem, either remove the unknown meta item, or rename it if you provided the wrong
113- name.
113+ To fix the problem, either remove the unknown meta item, or rename it if you
114+ provided the wrong name.
114115
115- In the erroneous code example above, the wrong name was provided, so changing it to the right name
116- fixes the error.
116+ In the erroneous code example above, the wrong name was provided, so changing it
117+ to the right name fixes the error.
117118
118119```
119120#[deprecated(
You can’t perform that action at this time.
0 commit comments