File 0401-Update-ets.xml.patch of Package erlang
From 92eb83404376f519cae859c9597476e40f49d1c8 Mon Sep 17 00:00:00 2001
From: leonardb <leonardb@users.noreply.github.com>
Date: Fri, 19 Aug 2022 16:01:31 -0400
Subject: [PATCH] Update ets.xml
Document badarg when Pos is larger than the tuple the element it to be extracted from
---
lib/stdlib/doc/src/ets.xml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/stdlib/doc/src/ets.xml b/lib/stdlib/doc/src/ets.xml
index 8e6bce9947..381bd6638f 100644
--- a/lib/stdlib/doc/src/ets.xml
+++ b/lib/stdlib/doc/src/ets.xml
@@ -944,6 +944,8 @@ Error: fun containing local Erlang function calls
element of every object with key <c><anno>Key</anno></c>.</p>
<p>If no object with key <c><anno>Key</anno></c> exists, the
function exits with reason <c>badarg</c>.</p>
+ <p>If <c><anno>Pos</anno></c> is larger than the size of the tuple,
+ the function exits with reason <c>badarg</c>.</p>
<p>The difference between <c>set</c>, <c>bag</c>, and
<c>duplicate_bag</c> on one hand, and <c>ordered_set</c> on
the other, regarding the fact that <c>ordered_set</c>
--
2.35.3