From cfe2e4660d7b6a37cab534935f67eda5dace49a9 Mon Sep 17 00:00:00 2001 From: Pavel Grigorenko Date: Wed, 14 Jun 2023 18:29:08 +0300 Subject: [PATCH] Mention `env!` in `option_env!`'s docs --- library/core/src/macros/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/core/src/macros/mod.rs b/library/core/src/macros/mod.rs index c4134dbcd25..45e5b76272e 100644 --- a/library/core/src/macros/mod.rs +++ b/library/core/src/macros/mod.rs @@ -960,6 +960,8 @@ pub(crate) mod builtin { /// /// A compile time error is never emitted when using this macro regardless /// of whether the environment variable is present or not. + /// To emit a compile error if the environment variable is not present, + /// use the [`env!`] macro instead. /// /// # Examples ///