Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions library/std/src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ impl fmt::Debug for ChildStderr {
///
/// let output = if cfg!(target_os = "windows") {
/// Command::new("cmd")
/// .args(&["/C", "echo hello"])
/// .args(["/C", "echo hello"])
/// .output()
/// .expect("failed to execute process")
/// } else {
Expand Down Expand Up @@ -608,7 +608,7 @@ impl Command {
/// use std::process::Command;
///
/// Command::new("ls")
/// .args(&["-l", "-a"])
/// .args(["-l", "-a"])
/// .spawn()
/// .expect("ls command failed to start");
/// ```
Expand Down