Skip to content

Commit f93418d

Browse files
committed
Adds indexes for but and does refs #1953 (also #1303)
1 parent cb63b8b commit f93418d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/Language/objects.pod6

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,7 @@ See document for L<clone> for details on how non-scalar attributes get cloned,
665665
as well as examples of implementing your own custom clone methods.
666666
667667
=head1 X<Roles|declarator,role>
668+
X<|does>
668669
669670
Roles are in some ways similar to classes, in that they are a collection of
670671
attributes and methods. They differ in that roles are also meant for
@@ -889,9 +890,9 @@ the role, making it possible to transparently use a role as if it were a class.
889890
We call this automatic creation of classes I<punning>, and the generated class
890891
a I<pun>.
891892
893+
X<|Parameterized Roles>
892894
=head2 Parameterized Roles
893895
894-
X<|Parameterized Roles>
895896
896897
Roles can be parameterized, by giving them a signature in square brackets:
897898
@@ -948,6 +949,7 @@ Here the signature consists only of a type capture, but any signature will do:
948949
You can have multiple roles of the same name, but with different signatures;
949950
the normal rules of multi dispatch apply for choosing multi candidates.
950951
952+
X<|but>
951953
=head2 X<Mixins> of Roles
952954
953955
Roles can be mixed into objects. A role's given attributes and methods will be

0 commit comments

Comments
 (0)