aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test/binref.erl
diff options
context:
space:
mode:
authorPatrik Nyblom <[email protected]>2010-05-10 16:27:58 +0200
committerBjörn Gustavsson <[email protected]>2010-05-17 15:51:50 +0200
commit97ab480df55cf574ab42a87b6927ef5bba83000e (patch)
treea19bfd73bfb45d772c4fd54cad13c1050a6b59a3 /lib/stdlib/test/binref.erl
parentdce00e268eb36048a729db9a2a9aebd4df0e7395 (diff)
downloadotp-97ab480df55cf574ab42a87b6927ef5bba83000e.tar.gz
otp-97ab480df55cf574ab42a87b6927ef5bba83000e.tar.bz2
otp-97ab480df55cf574ab42a87b6927ef5bba83000e.zip
Add documentation for binary module
Correct behaviour of copy/2 witn 0 copies.
Diffstat (limited to 'lib/stdlib/test/binref.erl')
-rw-r--r--lib/stdlib/test/binref.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stdlib/test/binref.erl b/lib/stdlib/test/binref.erl
index af79c8fa09..6d96736ef3 100644
--- a/lib/stdlib/test/binref.erl
+++ b/lib/stdlib/test/binref.erl
@@ -465,7 +465,7 @@ copy(Subject) ->
copy(Subject,1).
copy(Subject,N) ->
try
- true = is_integer(N) and (N > 0) and is_binary(Subject), % Badarg, not function clause
+ true = is_integer(N) and (N >= 0) and is_binary(Subject), % Badarg, not function clause
erlang:list_to_binary(lists:duplicate(N,Subject))
catch
_:_ ->