File tree 1 file changed +8
-7
lines changed
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -101,19 +101,20 @@ Erroneous code example:
101
101
```compile_fail,E0541
102
102
#[deprecated(
103
103
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'")
105
106
]
106
107
fn deprecated_function() {}
107
108
```
108
109
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.
111
112
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.
114
115
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.
117
118
118
119
```
119
120
#[deprecated(
You can’t perform that action at this time.
0 commit comments