Skip to content

Commit

Permalink
Merge pull request #9504 from NelsonVides/types/ets_update_element_4
Browse files Browse the repository at this point in the history
Return the right type from ets:update_element/4 spec

OTP-19514
  • Loading branch information
jhogberg authored Mar 3, 2025
2 parents 2bc3d81 + 2d787c3 commit 79a9b84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stdlib/src/ets.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1804,7 +1804,7 @@ The function fails with reason `badarg` in the following situations:
- The element to update is also the key.
""".
-doc(#{since => <<"OTP 27.0">>}).
-spec update_element(Table, Key, ElementSpec, Default) -> true when
-spec update_element(Table, Key, ElementSpec, Default) -> boolean() when
Table :: table(),
Key :: term(),
ElementSpec :: {Pos, Value} | [{Pos, Value}],
Expand Down

0 comments on commit 79a9b84

Please sign in to comment.