summary refs log tree commit diff
path: root/library/std/src/env.rs
AgeCommit message (Collapse)AuthorLines
2021-06-23Use HTTPS links where possibleSmitty-2/+2
2021-05-10change k to key and v to v in std::env modshirshak55-10/+10
2021-05-05Rollup merge of #84709 - joshtriplett:doc-alias-chdir, r=dtolnayRalf Jung-0/+1
Add doc alias for `chdir` to `std::env::set_current_dir` Searching for `chdir` in the Rust documentation produces no useful results. I wrote some code recently that called `libc::chdir` and manually handled errors, because I didn't realize that the safe `std::env::set_current_dir` existed. I searched for `chdir` and `change_dir` and `change_directory` (the latter two based on the precedent of unabbreviating set by `create_dir`), and I also read through `std::fs` expecting to potentially find it there. Given that none of those led to `std::env::set_current_dir`, I think that provides sufficient justification to add this specific alias.
2021-04-29Add doc alias for `chdir` to `std::env::set_current_dir`Josh Triplett-0/+1
Searching for `chdir` in the Rust documentation produces no useful results.
2021-04-29Link between std::env::{var, var_os} and std::env::{vars, vars_os}r00ster91-2/+11
2021-04-27Make sentence in env::args_os' docs plain and simpler00ster-1/+1
2021-04-25Change wordingr00ster-2/+2
2021-04-25Unify the docs of std::env::{args_os, args} morer00ster-8/+16
2021-04-22Rollup merge of #84413 - CDirkx:args_inner_debug, r=m-ou-seDylan DPC-2/+2
Remove `sys::args::Args::inner_debug` and use `Debug` instead This removes the method `sys::args::Args::inner_debug` on all platforms and implements `Debug` for `Args` instead. I believe this creates a more natural API for the different platforms under `sys`: export a type `Args: Debug + Iterator + ...` vs. `Args: Iterator + ...` and with a method `inner_debug`.
2021-04-22Remove `sys::args::Args::inner_debug` and use `Debug` insteadChristiaan Dirkx-2/+2
2021-04-21Replace all `fmt.pad` with `debug_struct`Christiaan Dirkx-3/+3
2021-01-20Document security implications of std::env::temp_dirJosh Triplett-6/+9
Update the sample code to not create an insecure temporary file.
2020-09-04Improve docs for `std::env::args()`Camelid-6/+6
2020-08-31Rollup merge of #75945 - pickfire:patch-7, r=jyn514Tyler Mandry-26/+25
Use `env::func()`, not 'the function env::func' in docs for std::env Follow up of https://github.com/rust-lang/rust/pull/75629 r? @jyn514
2020-08-31std: move "mod tests/benches" to separate filesLzu Tao-109/+3
Also doing fmt inplace as requested.
2020-08-30Fix env doc vars_os broken linkIvan Tham-1/+1
2020-08-30Env use shorter intra-doc links in pathIvan Tham-26/+25
vars() rather than vars function Co-authored-by: Joshua Nelson <joshua@yottadb.com> Use [xxx()] rather than the [xxx] function Co-authored-by: Joshua Nelson <joshua@yottadb.com> Env text representation of function intra-doc link Suggested by @jyn514 Link join_paths in env doc for parity Change xxx to env::xxx for lib env doc Add link requsted by @jyn514 Fix doc build with same link Co-authored-by: Joshua Nelson <joshua@yottadb.com> Fix missing intra-doc link Fix added whitespace in doc Co-authored-by: Joshua Nelson <joshua@yottadb.com> Add brackets for `join_paths` Co-authored-by: Joshua Nelson <joshua@yottadb.com> Use unused link join_paths Removed same link for join_paths Co-authored-by: Joshua Nelson <joshua@yottadb.com> Remove unsed link join_paths
2020-08-17Remove unnecessary links in env.rsEllen-8/+0
2020-08-17Switch to intra-doc links for std/src/env.rsEllen-27/+14
2020-07-27mv std libs to library/mark-0/+1076