Mention env! in option_env!'s docs

This commit is contained in:
Pavel Grigorenko 2023-06-14 18:29:08 +03:00
parent 7b0eac438a
commit cfe2e4660d
No known key found for this signature in database
GPG Key ID: 52BFCC6ED389F777

View File

@ -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
///