From e1d436b5ebf4514d9723630065306e7e7c4a2125 Mon Sep 17 00:00:00 2001 From: "M. Galib Uludag" Date: Sun, 3 Mar 2024 21:36:54 +0200 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b9305a4..4203844 100644 --- a/README.md +++ b/README.md @@ -50,14 +50,14 @@ auto enum_name = [](rgb_color c){ return mgutility::enum_name<-1, 3>(c); }; int main() { auto x = rgb_color::blue; - auto y = mgutility::to_enum("green"); + auto y = mgutility::to_enum("greenn"); // default signature: enum_name(Enum&&) // Changing max_value to not too much greater than enum's max value, it will compiles faster std::cout << mgutility::enum_name(x) << '\n'; // will print "blue" to output // calling specialized enum ranges function for rgb_color type - // will print "green" to output, if y can't convert to rgb_color prints "unknown" + // will print "green" to output, if y can't convert to rgb_color prints "UNKNOWN" std::cout << enum_name(y.value_or(rgb_color::unknown)) << '\n'; }