We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad9c12a commit 9045b1fCopy full SHA for 9045b1f
doc/Language/haskell-to-p6.pod6
@@ -138,7 +138,7 @@ an Enum.
138
139
testAnimal :: Animal -> String
140
testAnimal Dog = "Woof"
141
- testAnimal Horse = "Ney"
+ testAnimal Horse = "Neigh"
142
143
A Perl6 Enum does not fit the same exact use cases, but it can be used in putting
144
constraints on types.
@@ -147,7 +147,7 @@ constraints on types.
147
148
proto sub test-animal( Animal ) {*}
149
multi sub test-animal( Dog ) { 'Woof' }
150
- multi sub test-animal( Animal::Horse ) { 'Ney' } # more explicit
+ multi sub test-animal( Animal::Horse ) { 'Neigh' } # more explicit
151
152
say test-animal Animal::Dog; # more explicit
153
say test-animal Horse;
0 commit comments