aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2011-08-18 09:01:32 +0200
committerHans Bolinder <[email protected]>2011-08-18 09:01:32 +0200
commitaeaf6c7dc59ccba8fda3e581bfa44dc718edad55 (patch)
tree677e44f8982b2cae0c9ad9de43697cc0524a9715 /lib/stdlib
parent1bb695ab5ad8b2b285fc64e411fdc17119725276 (diff)
parent3dd0c537cb52853e7a3282bed07ebe6c46f952b6 (diff)
downloadotp-aeaf6c7dc59ccba8fda3e581bfa44dc718edad55.tar.gz
otp-aeaf6c7dc59ccba8fda3e581bfa44dc718edad55.tar.bz2
otp-aeaf6c7dc59ccba8fda3e581bfa44dc718edad55.zip
Merge branch 'hb/correction_of_zip_contracts/OTP-9471' into dev
* hb/correction_of_zip_contracts/OTP-9471: Correct contracts in the zip module
Diffstat (limited to 'lib/stdlib')
-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()).