Skip to content

Commit a99d869

Browse files
committed
Improve long explanation for E0542 and E0546
1 parent 218bf8d commit a99d869

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_error_codes/src/error_codes/E0542.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fn _stable_const_fn() {}
1919
fn _deprecated_fn() {}
2020
```
2121

22-
To fix the issue you need to provide the `since` field.
22+
To fix this issue, you need to provide the `since` field. Example:
2323

2424
```
2525
#![feature(staged_api)]

compiler/rustc_error_codes/src/error_codes/E0546.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ fn unstable_fn() {}
1313
fn stable_fn() {}
1414
```
1515

16-
To fix the issue you need to provide the `feature` field.
16+
To fix this issue, you need to provide the `feature` field. Example:
1717

1818
```
1919
#![feature(staged_api)]

0 commit comments

Comments
 (0)