Skip to content

Commit 50c88b6

Browse files
authored
correct @Args position, grammar
1 parent bebafa5 commit 50c88b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/Type/Proc.pod6

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ method new(Proc:U:
4848
Str:D :$nl = "\n",
4949
--> Proc:D)
5050
sub run(
51+
*@args,
5152
:$in = '-',
5253
:$out = '-',
5354
:$err = '-',
@@ -57,8 +58,7 @@ sub run(
5758
Str:D :$enc = 'UTF-8',
5859
Str:D :$nl = "\n",
5960
:$cwd = $*CWD,
60-
Hash() :$env = %*ENV,
61-
*@args
61+
Hash() :$env = %*ENV
6262
--> Proc:D)
6363
sub shell(
6464
$cmd,
@@ -75,7 +75,7 @@ sub shell(
7575
--> Proc:D)
7676
=end code
7777
78-
C<new> creates a new C<Proc> object, whereas C<run> or C<shell> create one, and spawns it
78+
C<new> creates a new C<Proc> object, whereas C<run> or C<shell> create one and spawn it
7979
with the command and arguments provided in C<@args> or C<$cmd>, respectively.
8080
8181
C<$in>, C<$out> and C<$err> are the three

0 commit comments

Comments
 (0)