File 0167-Removed-inconsistency-between-text-and-spec.patch of Package erlang

From a1648fd300615c9f3f51d5fcf5d24d2a32816d9b Mon Sep 17 00:00:00 2001
From: iri <ram3a12@gmail.com>
Date: Thu, 2 Jan 2025 00:37:43 +0300
Subject: [PATCH] Removed inconsistency between text and -spec

---
 lib/stdlib/src/maps.erl | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/stdlib/src/maps.erl b/lib/stdlib/src/maps.erl
index c9ac59dec3..e577f60308 100644
--- a/lib/stdlib/src/maps.erl
+++ b/lib/stdlib/src/maps.erl
@@ -829,8 +829,8 @@ foreach_1(_Fun, none, _ErrorTag) ->
     ok.
 
 -doc """
-Calls `F(Key, Value, AccIn)` for every `Key` to value `Value` association in
-`MapOrIter` in any order. Function `fun F/3` must return a new accumulator,
+Calls `Fun(Key, Value, AccIn)` for every `Key` to value `Value` association in
+`MapOrIter` in any order. Function `fun Fun/3` must return a new accumulator,
 which is passed to the next successive call. This function returns the final
 value of the accumulator. The initial accumulator value `Init` is returned if
 the map is empty.
@@ -873,7 +873,7 @@ fold_1(_Fun, Acc, none, _ErrorTag) ->
     Acc.
 
 -doc """
-Produces a new map `Map` by calling function `fun F(Key, Value1)` for every
+Produces a new map `Map` by calling function `fun Fun(Key, Value1)` for every
 `Key` to value `Value1` association in `MapOrIter` in any order. Function
 `fun Fun/2` must return value `Value2` to be associated with key `Key` for the
 new map `Map`.
-- 
2.43.0

openSUSE Build Service is sponsored by