From a99d869e6c80965520d5efe2740cf9f6875057f8 Mon Sep 17 00:00:00 2001 From: Jesus Rubio Date: Thu, 11 Feb 2021 16:26:07 +0100 Subject: [PATCH] Improve long explanation for E0542 and E0546 --- compiler/rustc_error_codes/src/error_codes/E0542.md | 2 +- compiler/rustc_error_codes/src/error_codes/E0546.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/rustc_error_codes/src/error_codes/E0542.md b/compiler/rustc_error_codes/src/error_codes/E0542.md index dbbc34a71be2c..7cb58f9d0cb74 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0542.md +++ b/compiler/rustc_error_codes/src/error_codes/E0542.md @@ -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)] diff --git a/compiler/rustc_error_codes/src/error_codes/E0546.md b/compiler/rustc_error_codes/src/error_codes/E0546.md index 0073357b5ea84..a33dcb7a9ac58 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0546.md +++ b/compiler/rustc_error_codes/src/error_codes/E0546.md @@ -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)]