aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/beam_lib.erl
diff options
context:
space:
mode:
authorPaul Guyot <[email protected]>2010-06-17 14:20:46 +0200
committerPaul Guyot <[email protected]>2010-06-17 14:20:46 +0200
commit8dad90e81443038707cccac66ef0718ac0ff6ee3 (patch)
tree9b59c9c705cba4a92412b70645cc04521a180263 /lib/stdlib/src/beam_lib.erl
parentc1e94fa9a6fe4ae717d35dfbd1b628dc2e06d26a (diff)
downloadotp-8dad90e81443038707cccac66ef0718ac0ff6ee3.tar.gz
otp-8dad90e81443038707cccac66ef0718ac0ff6ee3.tar.bz2
otp-8dad90e81443038707cccac66ef0718ac0ff6ee3.zip
Fix beam_lib:cmp/2 return type specification
Specify that beam_lib:cmp/2 can return {error, beam_lib, different_chunks} if a chunk is only present in one of the beams.
Diffstat (limited to 'lib/stdlib/src/beam_lib.erl')
-rw-r--r--lib/stdlib/src/beam_lib.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/stdlib/src/beam_lib.erl b/lib/stdlib/src/beam_lib.erl
index 91ff2438c6..e612bf71e7 100644
--- a/lib/stdlib/src/beam_lib.erl
+++ b/lib/stdlib/src/beam_lib.erl
@@ -105,6 +105,7 @@
| info_rsn().
-type cmp_rsn() :: {'modules_different', module(), module()}
| {'chunks_different', chunkid()}
+ | 'different_chunks'
| info_rsn().
%%-------------------------------------------------------------------------