Skip to content

Remove & from Command::args calls in documentation #86803

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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