diff options
| author | Evan Jones <evan.jones@datadoghq.com> | 2024-08-09 14:26:18 -0400 |
|---|---|---|
| committer | Evan Jones <evan.jones@datadoghq.com> | 2024-08-09 14:28:31 -0400 |
| commit | d5a7c459662a4868f4a38cbafb72dce7885e027d (patch) | |
| tree | b76c77f7d8826a8adf62d1462c7f6562d447d547 /compiler/rustc_pattern_analysis/src | |
| parent | 899eb03926be23f2e5d2ffcaa1d6f9ac40af7f13 (diff) | |
| download | rust-d5a7c459662a4868f4a38cbafb72dce7885e027d.tar.gz rust-d5a7c459662a4868f4a38cbafb72dce7885e027d.zip | |
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 #109894, which closed Issue #109893. This documentation was incorrectly added in commit f2c0f292, 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.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions
