Rollup merge of #85409 - CDirkx:cfg_redox, r=nagisa
Simplify `cfg(any(unix, target_os="redox"))` in example to just `cfg(unix)`
Update example for `OsString` that handled `redox` seperately from `unix`: Redox has been completely integrated under `target_family="unix"`, so `cfg(unix)` implies `target_os="redox"`
35dbef2350/compiler/rustc_target/src/spec/redox_base.rs (L26)
This commit is contained in:
commit
360db9c384
1 changed files with 1 additions and 1 deletions
|
@ -601,7 +601,7 @@ impl OsStr {
|
|||
/// // sequences simply through collecting user command line arguments, for
|
||||
/// // example.
|
||||
///
|
||||
/// #[cfg(any(unix, target_os = "redox"))] {
|
||||
/// #[cfg(unix)] {
|
||||
/// use std::ffi::OsStr;
|
||||
/// use std::os::unix::ffi::OsStrExt;
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue