Skip to content

Commit f7eeb52

Browse files
committed
we call them parameters these days and we indent examples with 4 spaces
1 parent cab78cb commit f7eeb52

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/Language/typesystem.pod6

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ comma can be provided. In this case conflicts will be reported at compile time.
542542
543543
For runtime mixins see L<but|/language/operators#infix_but> and L<does|/language/operators#infix_does>.
544544
545-
=head3 Role Arguments
545+
=head3 Role Parameters
546546
547547
Roles can be provided with parameters in-between C<[]> behind a roles name.
548548
X<|Type Capture (role)>L<Type captures|/type/Signature#Type_Captures> are supported.
@@ -554,14 +554,14 @@ X<|Type Capture (role)>L<Type captures|/type/Signature#Type_Captures> are suppor
554554
dd $c;
555555
# OUTPUT«C $c = C.new(a => "default")␤»
556556
557-
Arguments can have type constraints, C<where> clauses are not supported but can
557+
Parameters can have type constraints, C<where> clauses are not supported but can
558558
be achieved via C<subset>s.
559559
560-
class A {};
561-
class B {};
562-
subset A-or-B where * ~~ A|B;
563-
role R[A-or-B ::T] {};
564-
R[A.new].new;
560+
class A {};
561+
class B {};
562+
subset A-or-B where * ~~ A|B;
563+
role R[A-or-B ::T] {};
564+
R[A.new].new;
565565
566566
Default parameters can be provided.
567567

0 commit comments

Comments
 (0)