Skip to content

Commit 979c365

Browse files
committed
Fix error message for env! when env var is not valid Unicode
1 parent 29c7487 commit 979c365

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/macros/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,8 @@ pub(crate) mod builtin {
10531053
///
10541054
/// If the environment variable is not defined, then a compilation error
10551055
/// will be emitted. To not emit a compile error, use the [`option_env!`]
1056-
/// macro instead.
1056+
/// macro instead. A compilation error will also be emitted if the
1057+
/// environment variable is not a vaild Unicode string.
10571058
///
10581059
/// # Examples
10591060
///

0 commit comments

Comments
 (0)