fix(doc): missing text

This commit is contained in:
Victor Westerlund 2023-06-12 12:08:56 +02:00 committed by GitHub
parent c581e6f508
commit 6644be84ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,7 @@ enum HelloWorld: string {
} }
// Like Enum::tryFrom() but for Enum names instead of values // Like Enum::tryFrom() but for Enum names instead of values
HelloWorld::fromName("FOO"); // HelloWorld::fromName("FOO"); // HelloWorld::FOO
// .. and of course the non-throwing version // .. and of course the non-throwing version
HelloWorld::tryFromName("MOM"); // null HelloWorld::tryFromName("MOM"); // null
``` ```