Skip to content

Commit f0c12f1

Browse files
committed
Merge branch 'maint'
2 parents 003199b + ad7d11f commit f0c12f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/stdlib/src/ets.erl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -742,8 +742,8 @@ the `Pos`:th element of every object with key `Key`.
742742

743743
If no object with key `Key` exists, the function exits with reason `badarg`.
744744

745-
If `Pos` is larger than the size of the tuple, the function exits with reason
746-
`badarg`.
745+
If `Pos` is larger than the size of any tuple with a matching key, the function
746+
exits with reason `badarg`.
747747

748748
The difference between `set`, `bag`, and `duplicate_bag` on one hand, and
749749
`ordered_set` on the other, regarding the fact that `ordered_set` view keys as
@@ -777,7 +777,7 @@ equal when they _compare equal_ whereas the other table types regard them equal
777777
only when they _match_, holds for [`lookup_element/4`](`lookup_element/4`).
778778
""".
779779
-doc(#{since => <<"OTP 26.0">>}).
780-
-spec lookup_element(Table, Key, Pos, Default) -> Elem when
780+
-spec lookup_element(Table, Key, Pos, Default) -> Elem | Default when
781781
Table :: table(),
782782
Key :: term(),
783783
Pos :: pos_integer(),

0 commit comments

Comments
 (0)