mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
docs: udpate description of enums about #1334
This commit is contained in:
parent
eee629652e
commit
effca18250
@ -237,7 +237,8 @@ Enums
|
|||||||
=====
|
=====
|
||||||
|
|
||||||
Enums are one way to create a user-defined type in Solidity. They are explicitly convertible
|
Enums are one way to create a user-defined type in Solidity. They are explicitly convertible
|
||||||
to and from all integer types but implicit conversion is not allowed.
|
to and from all integer types but implicit conversion is not allowed. The explicit conversions
|
||||||
|
check the value ranges at runtime and a failure causes an exception. Enums needs at least one member.
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user