diff options
author | Hans Bolinder <[email protected]> | 2016-07-05 08:39:47 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2016-07-05 08:39:47 +0200 |
commit | 04bb724a572c78d775df2ec12a1694870369c3b4 (patch) | |
tree | 45c2de979178bb11d3c94f7b76daff7bad2e1f56 | |
parent | 7ec57c5e01c5a826467a324610c668ae4a5128ae (diff) | |
parent | 6941f5f480258fb870b3a17640e133d80a69f1d3 (diff) | |
download | otp-04bb724a572c78d775df2ec12a1694870369c3b4.tar.gz otp-04bb724a572c78d775df2ec12a1694870369c3b4.tar.bz2 otp-04bb724a572c78d775df2ec12a1694870369c3b4.zip |
Merge branch 'iilyak/stdlib/correct_ets_specs/PR-1113/OTP-13721' into maint
* iilyak/stdlib/correct_ets_specs/PR-1113/OTP-13721:
Fix return value spec for ets:match_object
-rw-r--r-- | lib/stdlib/src/ets.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/stdlib/src/ets.erl b/lib/stdlib/src/ets.erl index 3f74e01692..20de06fd0b 100644 --- a/lib/stdlib/src/ets.erl +++ b/lib/stdlib/src/ets.erl @@ -232,20 +232,20 @@ match(_) -> match_object(_, _) -> erlang:nif_error(undef). --spec match_object(Tab, Pattern, Limit) -> {[Match], Continuation} | +-spec match_object(Tab, Pattern, Limit) -> {[Object], Continuation} | '$end_of_table' when Tab :: tab(), Pattern :: match_pattern(), Limit :: pos_integer(), - Match :: [term()], + Object :: tuple(), Continuation :: continuation(). match_object(_, _, _) -> erlang:nif_error(undef). --spec match_object(Continuation) -> {[Match], Continuation} | +-spec match_object(Continuation) -> {[Object], Continuation} | '$end_of_table' when - Match :: [term()], + Object :: tuple(), Continuation :: continuation(). match_object(_) -> |