Correct the method name

Closes GH-1083.
This commit is contained in:
DAI JIE 2021-11-11 17:54:50 +08:00 committed by GitHub
parent ebee35a03a
commit 07fa5232bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,7 @@
<methodparam><type class="union"><type>string</type><type>int</type></type><parameter>value</parameter></methodparam>
</methodsynopsis>
<para>
The <methodname>from</methodname> method translates a <type>string</type> or <type>int</type>
The <methodname>tryFrom</methodname> method translates a <type>string</type> or <type>int</type>
into the corresponding Enum case, if any. If there is no matching case defined, it will
return null.
</para>