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 da39efc commit 7b5fe33Copy full SHA for 7b5fe33
doc/Type/Metamodel/EnumHOW.pod6
@@ -60,7 +60,7 @@ Returns the number of values.
60
61
method enum_from_value(Metamodel::ClassHOW:D: $obj, $value)
62
63
-Given a value of the enum's value type, return the corresponding enum.
+Given a value of the enum's base type, return the corresponding enum.
64
65
enum numbers <10 20>;
66
say numbers.^enum_from_value(0) # OUTPUT: 10
0 commit comments