File 2625-Clarify-the-Pred-function-in-lists-must-return-boole.patch of Package erlang

From dd4f76152077ade499a51c02b8b56403d90264b5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jos=C3=A9=20Valim?= <jose.valim@dashbit.co>
Date: Sat, 19 Jun 2021 17:00:39 +0200
Subject: [PATCH] Clarify the Pred function in lists must return booleans

Closes #4985.
---
 lib/stdlib/doc/src/lists.xml | 21 ++++++++++++++-------
 1 file changed, 14 insertions(+), 7 deletions(-)

diff --git a/lib/stdlib/doc/src/lists.xml b/lib/stdlib/doc/src/lists.xml
index 9261ade998..5477f13d1e 100644
--- a/lib/stdlib/doc/src/lists.xml
+++ b/lib/stdlib/doc/src/lists.xml
@@ -696,7 +700,8 @@ c</pre>
           such that <c><anno>Pred</anno>(<anno>Value</anno>)</c> returns
           <c>true</c>, returns <c>{value, <anno>Value</anno>}</c>
           for the first such <c><anno>Value</anno></c>,
-          otherwise returns <c>false</c>.</p>
+          otherwise returns <c>false</c>. The <c>Pred</c> function must return
+          a boolean.</p>
       </desc>
     </func>
 
-- 
2.26.2

openSUSE Build Service is sponsored by