Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

doc: std::env::var: Returns None for names with '=' or NUL byte #128902

Merged
merged 2 commits into from
Aug 19, 2024

Commits on Aug 9, 2024

  1. doc: std::env::var: Returns None for names with '=' or NUL byte

    The documentation incorrectly stated that std::env::var could return
    an error for variable names containing '=' or the NUL byte. Copy the
    correct documentation from var_os.
    
    var_os was fixed in Commit 8a7a665, Pull Request rust-lang#109894, which
    closed Issue rust-lang#109893.
    
    This documentation was incorrectly added in commit f2c0f29, which
    replaced a panic in var_os by returning None, but documented the
    change as "May error if ...".
    
    Reference the specific error values and link to them.
    evanj committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    d5a7c45 View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2024

  1. code review improvements

    evanj committed Aug 18, 2024
    Configuration menu
    Copy the full SHA
    b0023f5 View commit details
    Browse the repository at this point in the history