diff options
author | Paul Guyot <[email protected]> | 2010-06-17 14:20:46 +0200 |
---|---|---|
committer | Paul Guyot <[email protected]> | 2010-06-17 14:20:46 +0200 |
commit | 8dad90e81443038707cccac66ef0718ac0ff6ee3 (patch) | |
tree | 9b59c9c705cba4a92412b70645cc04521a180263 /lib | |
parent | c1e94fa9a6fe4ae717d35dfbd1b628dc2e06d26a (diff) | |
download | otp-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')
-rw-r--r-- | lib/stdlib/doc/src/beam_lib.xml | 1 | ||||
-rw-r--r-- | lib/stdlib/src/beam_lib.erl | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/stdlib/doc/src/beam_lib.xml b/lib/stdlib/doc/src/beam_lib.xml index 27308e02f3..adc411e272 100644 --- a/lib/stdlib/doc/src/beam_lib.xml +++ b/lib/stdlib/doc/src/beam_lib.xml @@ -341,6 +341,7 @@ chunkref() = chunkname() | chunkid()</code> <v>Beam1 = Beam2 = beam()</v> <v>Reason = {modules_different, Module1, Module2}</v> <v> | {chunks_different, ChunkId}</v> + <v> | different_chunks</v> <v> | Reason1 -- see info/1</v> <v> Module1 = Module2 = atom()</v> <v> ChunkId = chunkid()</v> 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(). %%------------------------------------------------------------------------- |