Skip to content

Commit fda0a73

Browse files
committed
Clarifies an example (and eliminates subsectioning)
1 parent 4ca3ebc commit fda0a73

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

doc/Language/typesystem.pod6

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -755,16 +755,15 @@ package, we can get a list of type objects for the keys.
755755
say @keys.map: *.perl;
756756
# OUTPUT: «(E::two E::one)␤»
757757
758-
=head3 Introspection
759-
760-
=head4 Metaclass
758+
=head3 Metaclass
761759
762-
To test if a given type object is an enum test the meta object method C<.HOW>
763-
for L<Metamodel::EnumHOW|/type/Metamodel::EnumHOW>.
760+
To test if a given type object is an C<enum>, test the meta object method
761+
C<.HOW> for L<Metamodel::EnumHOW|/type/Metamodel::EnumHOW> or simply test again
762+
the C<Enumeration> role.
764763
765764
enum E(<a b c>);
766-
say E.HOW ~~ Metamodel::EnumHOW;
767-
# OUTPUT: «True␤»
765+
say E.HOW ~~ Metamodel::EnumHOW; # OUTPUT: «True␤»
766+
say E ~~ Enumeration; # OUTPUT: «True␤»
768767
769768
=head3 Methods
770769

0 commit comments

Comments
 (0)