Merge pull request #10830 from az1az1/develop

Update value-types.rst
This commit is contained in:
Harikrishnan Mulackal
2021-01-21 12:41:46 +01:00
committed by GitHub
+1 -1
View File
@@ -637,7 +637,7 @@ Conversions:
A function type ``A`` is implicitly convertible to a function type ``B`` if and only if
their parameter types are identical, their return types are identical,
their internal/external property is identical and the state mutability of ``A``
is not more restrictive than the state mutability of ``B``. In particular:
is more restrictive than the state mutability of ``B``. In particular:
- ``pure`` functions can be converted to ``view`` and ``non-payable`` functions
- ``view`` functions can be converted to ``non-payable`` functions