File 0148-Improve-ets-lookup_element-3-docs.patch of Package erlang
From 3bf81b838692744447a6ddc37e7a815f06691dca Mon Sep 17 00:00:00 2001
From: Maria Scott <maria-12648430@hnc-agency.org>
Date: Wed, 24 Sep 2025 15:54:36 +0200
Subject: [PATCH 2/2] Improve ets:lookup_element/3 docs
---
lib/stdlib/src/ets.erl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/stdlib/src/ets.erl b/lib/stdlib/src/ets.erl
index c9b64b9ba8..94472e6b82 100644
--- a/lib/stdlib/src/ets.erl
+++ b/lib/stdlib/src/ets.erl
@@ -742,8 +742,8 @@ the `Pos`:th element of every object with key `Key`.
If no object with key `Key` exists, the function exits with reason `badarg`.
-If `Pos` is larger than the size of the tuple, the function exits with reason
-`badarg`.
+If `Pos` is larger than the size of any tuple with a matching key, the function
+exits with reason `badarg`.
The difference between `set`, `bag`, and `duplicate_bag` on one hand, and
`ordered_set` on the other, regarding the fact that `ordered_set` view keys as
--
2.51.0