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`.
742742
743743If 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
748748The 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
777777only 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 (),
You can’t perform that action at this time.
0 commit comments