Skip to content

Commit 7b5fe33

Browse files
committed
Actually correct Metamodel::EnumHOW's add_enum_value method description
Enums have a base type, not a value type.
1 parent da39efc commit 7b5fe33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/Type/Metamodel/EnumHOW.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Returns the number of values.
6060
6161
method enum_from_value(Metamodel::ClassHOW:D: $obj, $value)
6262
63-
Given a value of the enum's value type, return the corresponding enum.
63+
Given a value of the enum's base type, return the corresponding enum.
6464
6565
enum numbers <10 20>;
6666
say numbers.^enum_from_value(0) # OUTPUT: 10

0 commit comments

Comments
 (0)