From 243abfc531992467ddfa171dc13b6b12fc8c3ebf Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Mon, 12 Jun 2023 12:12:59 +0200 Subject: [PATCH] fix(doc): wrong example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6aafbe5..9cdb86c 100644 --- a/README.md +++ b/README.md @@ -16,9 +16,9 @@ enum HelloWorld: string { case BAZ = "QUX"; } -// Like Enum::tryFrom() but for Enum names instead of values +// Like Enum::from() but for Enum names instead of values HelloWorld::fromName("FOO"); // HelloWorld::FOO -// .. and of course the non-throwing version +// And of course the non-throwing version similar to Enum::tryFrom() HelloWorld::tryFromName("MOM"); // null ```