aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2011-08-17 15:44:50 +0200
committerHans Bolinder <[email protected]>2011-08-17 15:44:50 +0200
commit3dd0c537cb52853e7a3282bed07ebe6c46f952b6 (patch)
tree16a4b262cecba1a2c7edcce2a26bf54df5e7ebd2 /lib/stdlib/src
parent51e952943128d9ae546bee3fc79e8cb8998dfb57 (diff)
downloadotp-3dd0c537cb52853e7a3282bed07ebe6c46f952b6.tar.gz
otp-3dd0c537cb52853e7a3282bed07ebe6c46f952b6.tar.bz2
otp-3dd0c537cb52853e7a3282bed07ebe6c46f952b6.zip
Correct contracts in the zip module
The contracts of zip:zip_list_dir/1 and zip:zip_get/2 have been corrected.
Diffstat (limited to 'lib/stdlib/src')
-rw-r--r--lib/stdlib/src/zip.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stdlib/src/zip.erl b/lib/stdlib/src/zip.erl
index 524d709431..5a939dfa0a 100644
--- a/lib/stdlib/src/zip.erl
+++ b/lib/stdlib/src/zip.erl
@@ -1174,7 +1174,7 @@ zip_get(Pid) when is_pid(Pid) ->
zip_close(Pid) when is_pid(Pid) ->
request(self(), Pid, close).
--spec(zip_get(FileName, ZipHandle) -> {ok, [Result]} | {error, Reason} when
+-spec(zip_get(FileName, ZipHandle) -> {ok, Result} | {error, Reason} when
FileName :: file:name(),
ZipHandle :: pid(),
Result :: file:name() | {file:name(), binary()},
@@ -1183,7 +1183,7 @@ zip_close(Pid) when is_pid(Pid) ->
zip_get(FileName, Pid) when is_pid(Pid) ->
request(self(), Pid, {get, FileName}).
--spec(zip_list_dir(ZipHandle) -> Result | {error, Reason} when
+-spec(zip_list_dir(ZipHandle) -> {ok, Result} | {error, Reason} when
Result :: [zip_comment() | zip_file()],
ZipHandle :: pid(),
Reason :: term()).