Skip to content

Commit fe116ef

Browse files
committed
Revises changes and adds some fixes.
@skids' changes are OK, so this closes #1138
1 parent c84098f commit fe116ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/Language/objects.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ role.
835835
836836
=head2 Inheritance
837837
838-
Roles cannot inherit from classes, but they may carry classes, causing
838+
Roles cannot inherit from classes, but they may I<carry> classes, causing
839839
any class which does that role to inherit from the carried classes.
840840
So if you write:
841841
@@ -848,7 +848,7 @@ So if you write:
848848
then C<X::Ouch> will inherit directly from Exception, as we can see above
849849
by listing its parents.
850850
851-
As they do not use inheritance, roles are not part of the class hierarchy.
851+
As they do not use what can properly be called inheritance, roles are not part of the class hierarchy.
852852
Roles are listed with the C<.^roles> meta-method instead, which uses C<transitive> as flag for including all levels or just the first one. Despite this, a
853853
class or instance may still be tested with smartmatches or type constraints
854854
to see if it does a role.

0 commit comments

Comments
 (0)