We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca62a97 commit 9d69f08Copy full SHA for 9d69f08
library/std/src/process.rs
@@ -682,8 +682,11 @@ impl Command {
682
683
/// Sets the argument at index to a new value.
684
///
685
- /// When one wants to restart a Command again with different
686
- /// arguments the argument list can to be cleared first.
+ /// An existing argument at the given index will be replaced with a new value.
+ ///
687
+ /// # Panics
688
689
+ /// May panic if the index is 0 or out of bounds.
690
691
/// # Examples
692
0 commit comments