aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2014-07-01 09:20:09 +0200
committerHans Bolinder <[email protected]>2014-07-01 09:20:09 +0200
commitd2ade9b27432a1f7342e231d0d8b12467c3d3d77 (patch)
treed4f8aa18ee7ee3236b0e6e43b309307dd80577a5 /lib/stdlib/src
parenta884f78ee7609b3140f5a9fb524599be4ea816d7 (diff)
parent4e19c161a1aaae5462d9de34c2e10b0109f5f853 (diff)
downloadotp-d2ade9b27432a1f7342e231d0d8b12467c3d3d77.tar.gz
otp-d2ade9b27432a1f7342e231d0d8b12467c3d3d77.tar.bz2
otp-d2ade9b27432a1f7342e231d0d8b12467c3d3d77.zip
Merge branch 'hb/stdlib/dets_insert_new/OTP-12024' into maint
* hb/stdlib/dets_insert_new/OTP-12024: stdlib: Correct documentation of dets:insert/2
Diffstat (limited to 'lib/stdlib/src')
-rw-r--r--lib/stdlib/src/dets.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/stdlib/src/dets.erl b/lib/stdlib/src/dets.erl
index c32da1624f..76e03bbfaa 100644
--- a/lib/stdlib/src/dets.erl
+++ b/lib/stdlib/src/dets.erl
@@ -440,9 +440,10 @@ insert(Tab, Objs) when is_list(Objs) ->
insert(Tab, Obj) ->
badarg(treq(Tab, {insert, [Obj]}), [Tab, Obj]).
--spec insert_new(Name, Objects) -> boolean() when
+-spec insert_new(Name, Objects) -> boolean() | {'error', Reason} when
Name :: tab_name(),
- Objects :: object() | [object()].
+ Objects :: object() | [object()],
+ Reason :: term().
insert_new(Tab, Objs) when is_list(Objs) ->
badarg(treq(Tab, {insert_new, Objs}), [Tab, Objs]);