Skip to content

Commit 9d69f08

Browse files
committed
DOCFIX: arg_set() lacked doc/panics
1 parent ca62a97 commit 9d69f08

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

library/std/src/process.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -682,8 +682,11 @@ impl Command {
682682

683683
/// Sets the argument at index to a new value.
684684
///
685-
/// When one wants to restart a Command again with different
686-
/// arguments the argument list can to be cleared first.
685+
/// An existing argument at the given index will be replaced with a new value.
686+
///
687+
/// # Panics
688+
///
689+
/// May panic if the index is 0 or out of bounds.
687690
///
688691
/// # Examples
689692
///

0 commit comments

Comments
 (0)