Skip to content

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

Closed
@lopopolo

Description

@lopopolo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and tools

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions