Skip to content

Commit 6946033

Browse files
authored
add output of .WHAT to example
1 parent 84ac0dc commit 6946033

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/Type/Enumeration.rakudoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ types:
1616

1717
enum norse-gods <Þor Oðin Loki>;
1818
my $one-of-them = norse-gods.pick;
19+
say $one-of-them.WHAT; # OUTPUT: «(norse-gods)»
1920
say $one-of-them ~~ Enumeration; # OUTPUT: «True␤»
2021

2122
but nothing prevents you from using it in your own programs if you want to
@@ -64,7 +65,7 @@ T and A
6465
# and so on...
6566
=end code
6667

67-
An item would smartmatch the enum class, but not the other way round:
68+
An item would smartmatch the enum cass, but not the other way round:
6869

6970
=for code
7071
enum Foo <bar baz>;

0 commit comments

Comments
 (0)