Skip to content

Commit d333643

Browse files
authored
Avoid auto-generate '/type/*'
#1649
1 parent d3bc401 commit d333643

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/Language/typesystem.pod6

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ C<X::Comp::AdHoc> will be thrown.
559559
CATCH { default { say .^name, ' ', .Str } }
560560
# OUTPUT: «X::Comp::AdHoc Method 'overload-this' must be implemented by A because it is required by roles: R.␤»
561561
562-
=head3 Role auto-punning
562+
=head3 Auto-punning
563563
564564
A role can be used instead of a class to create objects. Since roles can't
565565
exist at runtime, a class of the same name is created that will type check
@@ -592,7 +592,7 @@ comma can be provided. In this case conflicts will be reported at compile time.
592592
593593
For runtime mixins see L<but|/language/operators#infix_but> and L<does|/language/operators#infix_does>.
594594
595-
=head3 Role Parameters
595+
=head3 Parameterized
596596
597597
Roles can be provided with parameters in-between C<[]> behind a roles name.
598598
X<|Type Capture (role)>L<Type captures|/type/Signature#Type_Captures> are supported.
@@ -620,7 +620,7 @@ Default parameters can be provided.
620620
CATCH { default { say .^name, ': ', .Str} }
621621
# OUTPUT: «X::AdHoc: Could not instantiate role 'R':␤Please provide a parameter to role R␤»
622622
623-
=head3 Roles as Types
623+
=head3 As Type Constraints
624624
625625
Roles can be used as type constraints wherever a type is expected. If a role is
626626
mixed in with C<does> or C<but>, its type-object is added to the type-object

0 commit comments

Comments
 (0)