From e0ddee06b2c37b69196154546b511c20b372cf38 Mon Sep 17 00:00:00 2001 From: Samuel Berthe Date: Wed, 20 Dec 2023 00:50:02 +0100 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ea3989b8..e18739e7 100644 --- a/README.md +++ b/README.md @@ -1823,7 +1823,7 @@ str, index, ok := lo.FindLastIndexOf([]string{"foobar"}, func(i string) bool { ### FindOrElse -Search an element in a slice based on a predicate. It returns element or the fallback value if the element was not found. +Search an element in a slice based on a predicate. It returns the element if found or a given fallback value otherwise. ```go str := lo.FindOrElse([]string{"a", "b", "c", "d"}, "x", func(i string) bool {