File 1215-Correct-exception-raised-by-a-bad-map-update-operati.patch of Package erlang
From 8f50f8135a98b98a536f621003d35af67a78d342 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= <bjorn@erlang.org>
Date: Fri, 3 Mar 2023 04:57:05 +0100
Subject: [PATCH] Correct exception raised by a bad map update operation
---
system/doc/reference_manual/expressions.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/system/doc/reference_manual/expressions.xml b/system/doc/reference_manual/expressions.xml
index c0698e4140..2095c8e61d 100644
--- a/system/doc/reference_manual/expressions.xml
+++ b/system/doc/reference_manual/expressions.xml
@@ -1178,7 +1178,7 @@ M4 = #{{"w", 1} => f()}. % compound key associated with an evaluated expression
</p>
<p>
If key <c>K</c> does not match any existing keys in map <c>M</c>, an exception
- of type <c>badarg</c> is triggered at runtime. If a matching key <c>K</c>
+ of type <c>badkey</c> is triggered at runtime. If a matching key <c>K</c>
is present in map <c>M</c>, its associated value is replaced by the new
value <c>V</c>, and the evaluated map expression returns a new map.
</p>
--
2.35.3