diff options
author | Hans Bolinder <[email protected]> | 2011-08-18 09:01:32 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2011-08-18 09:01:32 +0200 |
commit | aeaf6c7dc59ccba8fda3e581bfa44dc718edad55 (patch) | |
tree | 677e44f8982b2cae0c9ad9de43697cc0524a9715 | |
parent | 1bb695ab5ad8b2b285fc64e411fdc17119725276 (diff) | |
parent | 3dd0c537cb52853e7a3282bed07ebe6c46f952b6 (diff) | |
download | otp-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
-rw-r--r-- | lib/stdlib/src/zip.erl | 4 |
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()). |