Skip to content

Commit

Permalink
Improve long explanation for E0542 and E0546
Browse files Browse the repository at this point in the history
  • Loading branch information
jesusprubio committed Feb 11, 2021
1 parent 218bf8d commit a99d869
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compiler/rustc_error_codes/src/error_codes/E0542.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fn _stable_const_fn() {}
fn _deprecated_fn() {}
```

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

```
#![feature(staged_api)]
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_error_codes/src/error_codes/E0546.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fn unstable_fn() {}
fn stable_fn() {}
```

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

```
#![feature(staged_api)]
Expand Down

0 comments on commit a99d869

Please sign in to comment.