File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -742,8 +742,8 @@ the `Pos`:th element of every object with key `Key`.
742
742
743
743
If no object with key `Key` exists, the function exits with reason `badarg`.
744
744
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`.
747
747
748
748
The difference between `set`, `bag`, and `duplicate_bag` on one hand, and
749
749
`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
777
777
only when they _match_, holds for [`lookup_element/4`](`lookup_element/4`).
778
778
""" .
779
779
-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
781
781
Table :: table (),
782
782
Key :: term (),
783
783
Pos :: pos_integer (),
You can’t perform that action at this time.
0 commit comments