You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cyrgani opened this issue
Mar 7, 2025
· 3 comments
· Fixed by #138189
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-libsRelevant to the library team, which will review and decide on the PR/issue.
std::env::var operates at runtime, env! and option_env! at compile time.
The reverse link from the macro to the function exists already, but env! / option_env! should also be mentioned in std::env::var's docs.
The text was updated successfully, but these errors were encountered:
cyrgani
added
the
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
label
Mar 7, 2025
jieyouxu
added
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
and removed
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
labels
Mar 7, 2025
Rollup merge of rust-lang#138189 - GuillaumeGomez:env-var, r=joshtriplett
Mention `env` and `option_env` macros in `std::env::var` docs
Fixesrust-lang#138159.
Just like there are mentions in `env!` and `option_env!` docs to `std::env::var`, it'd be nice to have a "mention back" as well.
github-actionsbot
pushed a commit
to model-checking/verify-rust-std
that referenced
this issue
Mar 14, 2025
…lett
Mention `env` and `option_env` macros in `std::env::var` docs
Fixesrust-lang#138159.
Just like there are mentions in `env!` and `option_env!` docs to `std::env::var`, it'd be nice to have a "mention back" as well.
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-libsRelevant to the library team, which will review and decide on the PR/issue.
Location
std::env::var
Summary
std::env::var
operates at runtime,env!
andoption_env!
at compile time.The reverse link from the macro to the function exists already, but
env!
/option_env!
should also be mentioned instd::env::var
's docs.The text was updated successfully, but these errors were encountered: