Skip to content

std::env::var and std::env::var_os do not document panic on key containing null byte #63456

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
lopopolo opened this issue Aug 11, 2019 · 0 comments · Fixed by #63461
Closed
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools

Comments

@lopopolo
Copy link
Contributor

env::remove_var and env::set_var document that they panic when the key contains a null byte, but env::var and env::var_os do not document this behavior.

https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=e43934f459b10424f374f20db846f092

@estebank estebank added the A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools label Aug 11, 2019
Centril added a commit to Centril/rust that referenced this issue Aug 12, 2019
…iplett

docs: add stdlib env::var(_os) panic

Closes rust-lang#63456
Centril added a commit to Centril/rust that referenced this issue Aug 12, 2019
…iplett

docs: add stdlib env::var(_os) panic

Closes rust-lang#63456
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants