Add spec for base64:encode_binary/1

Paul Oliver <>
Wed Aug 18 13:13:37 CEST 2010

Dialyzer was reporting that use of base64:encode(Foo :: binary()) had spec
binary() -> <<_:_*1>>.  The binary comprehension in base64:encode seems to
result in the return type of <<_:_*1>>.  The patch below enforces a return
type of binary().

git fetch git:// base64_encode_binary_spec


More information about the erlang-patches mailing list