@@ -298,7 +298,7 @@ X<|ARGS-TO-CAPTURE>
298
298
The C < ARGS-TO-CAPTURE > subroutine should accept two parameters: a L < Callable >
299
299
representing the C < MAIN > unit to be executed (so it can be introspected if
300
300
necessary) and an array with the arguments from the command line. It
301
- should return a L < Capture|/type/Capture > object that should be used to
301
+ should return a L < Capture|/type/Capture > object that will be used to
302
302
dispatch the C < MAIN > unit. A B < very > contrived example that will create
303
303
a C < Capture > depending on some keyword that was entered (which can be handy
304
304
during testing of a command line interface of a script):
@@ -334,7 +334,7 @@ ecosystem.
334
334
X < |GENERATE-USAGE >
335
335
= head2 sub GENERATE-USAGE
336
336
337
- The C < GENERATE-USAGE > subroutine should accept a Callable representing the
337
+ The C < GENERATE-USAGE > subroutine should accept a C < Callable > representing the
338
338
C < MAIN > subroutine that didn't get executed because the dispatch failed.
339
339
This can be used for introspection. All the other parameters are the
340
340
parameters that were set up to be sent to C < MAIN > . It should return the
@@ -348,7 +348,7 @@ arguments:
348
348
!! &*GENERATE-USAGE(&main, |capture)
349
349
}
350
350
351
- You can also use multi subroutine to create the same effect:
351
+ You can also use multi subroutines to create the same effect:
352
352
353
353
multi sub GENERATE-USAGE(&main, :$foo!) {
354
354
"You're not allowed to specify a --foo"
@@ -376,7 +376,7 @@ called if a C<MAIN> subroutine was found in the mainline of a program.
376
376
377
377
This interface was never documented. However, any programs using this
378
378
undocumented interface will continue to function until C < v6.e > . From v6.d
379
- onward, the use of the undocumented API will cause a DEPRECATED message.
379
+ onward, the use of the undocumented API will cause a C < DEPRECATED > message.
380
380
381
381
Ecosystem modules can provide both the new and the old interface for
382
382
compatibility with older versions of Perl 6: if a newer Perl 6 recognizes
0 commit comments