diff options
author | Hans Bolinder <[email protected]> | 2014-06-30 13:24:04 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2014-06-30 13:24:04 +0200 |
commit | 4e19c161a1aaae5462d9de34c2e10b0109f5f853 (patch) | |
tree | 3bbe9dacbc5df11f426dec1848dba4cf4a3091a3 /lib/stdlib/src | |
parent | e54518231ac28096dec8f0a63afe527916ff1343 (diff) | |
download | otp-4e19c161a1aaae5462d9de34c2e10b0109f5f853.tar.gz otp-4e19c161a1aaae5462d9de34c2e10b0109f5f853.tar.bz2 otp-4e19c161a1aaae5462d9de34c2e10b0109f5f853.zip |
stdlib: Correct documentation of dets:insert/2
Thanks to Alexei Sholik for reporting the bug.
Diffstat (limited to 'lib/stdlib/src')
-rw-r--r-- | lib/stdlib/src/dets.erl | 5 |
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]); |