aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/beam_lib.erl
diff options
context:
space:
mode:
authorJosé Valim <[email protected]>2018-02-20 12:54:27 +0100
committerJosé Valim <[email protected]>2018-02-21 16:33:53 +0100
commit8f93219117d3c553500d7e55f1ec65cab3e1c3e0 (patch)
tree2ad4175e94de76ccce9e88f32aa8a6c30605b009 /lib/stdlib/src/beam_lib.erl
parent7304c1e1deed6ac1fbddc88ea5c6d5138231dbf7 (diff)
downloadotp-8f93219117d3c553500d7e55f1ec65cab3e1c3e0.tar.gz
otp-8f93219117d3c553500d7e55f1ec65cab3e1c3e0.tar.bz2
otp-8f93219117d3c553500d7e55f1ec65cab3e1c3e0.zip
Fix spec for beam_lib:all_chunks/1
Diffstat (limited to 'lib/stdlib/src/beam_lib.erl')
-rw-r--r--lib/stdlib/src/beam_lib.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/stdlib/src/beam_lib.erl b/lib/stdlib/src/beam_lib.erl
index 06c15fceda..24349c74e8 100644
--- a/lib/stdlib/src/beam_lib.erl
+++ b/lib/stdlib/src/beam_lib.erl
@@ -148,7 +148,8 @@ chunks(File, Chunks, Options) ->
try read_chunk_data(File, Chunks, Options)
catch Error -> Error end.
--spec all_chunks(beam()) -> {'ok', 'beam_lib', [{chunkid(), dataB()}]}.
+-spec all_chunks(beam()) ->
+ {'ok', 'beam_lib', [{chunkid(), dataB()}]} | {'error', 'beam_lib', info_rsn()}.
all_chunks(File) ->
read_all_chunks(File).