aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/ets.erl
diff options
context:
space:
mode:
authorILYA Khlopotov <[email protected]>2016-06-22 10:01:19 -0700
committerILYA Khlopotov <[email protected]>2016-07-04 05:58:48 -0700
commit6941f5f480258fb870b3a17640e133d80a69f1d3 (patch)
tree0b2583464aba99e720f0a214b169eb4b66b7676b /lib/stdlib/src/ets.erl
parent3b7a6ffddc819bf305353a593904cea9e932e7dc (diff)
downloadotp-6941f5f480258fb870b3a17640e133d80a69f1d3.tar.gz
otp-6941f5f480258fb870b3a17640e133d80a69f1d3.tar.bz2
otp-6941f5f480258fb870b3a17640e133d80a69f1d3.zip
Fix return value spec for ets:match_object
ets:match_object/1 and ets:match_object/3 return list of matches
Diffstat (limited to 'lib/stdlib/src/ets.erl')
-rw-r--r--lib/stdlib/src/ets.erl8
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(_) ->