We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81c1d7a commit 18715c0Copy full SHA for 18715c0
library/std/src/process.rs
@@ -451,7 +451,7 @@ impl fmt::Debug for ChildStderr {
451
///
452
/// let output = if cfg!(target_os = "windows") {
453
/// Command::new("cmd")
454
-/// .args(&["/C", "echo hello"])
+/// .args(["/C", "echo hello"])
455
/// .output()
456
/// .expect("failed to execute process")
457
/// } else {
@@ -608,7 +608,7 @@ impl Command {
608
/// use std::process::Command;
609
610
/// Command::new("ls")
611
- /// .args(&["-l", "-a"])
+ /// .args(["-l", "-a"])
612
/// .spawn()
613
/// .expect("ls command failed to start");
614
/// ```
0 commit comments