From 71d834120db5c5aa322ff4898bdd3b2d8964141e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20S=C5=82omka?= Date: Wed, 20 Dec 2023 00:50:08 +0100 Subject: [PATCH] docs: update description for FindOrElse (#370) * docs: update description for FindOrElse * Update README.md --------- Co-authored-by: Samuel Berthe --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ea3fb26a..dd848c39 100644 --- a/README.md +++ b/README.md @@ -1824,7 +1824,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 and true if element was 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 {