summaryrefslogtreecommitdiff
path: root/src/hex.erl
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2014-09-27 23:34:58 +0200
committerMagnus Ahltorp <map@kth.se>2014-09-27 23:34:58 +0200
commit54ce1162dc56e02f2e086e7bd34b97b57604e7a4 (patch)
tree3be1b442e896a39f894d639528bd494048061d6b /src/hex.erl
parentc3111912df87159d1c3bccac351f614a25a3c553 (diff)
parent9c0d01c3059a7f82ac9acd5574755feed2f351a8 (diff)
Merge branch 'fsync3' into fsync4
Diffstat (limited to 'src/hex.erl')
-rw-r--r--src/hex.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hex.erl b/src/hex.erl
index e3c8441..1eb1e6a 100644
--- a/src/hex.erl
+++ b/src/hex.erl
@@ -4,6 +4,7 @@
-module(hex).
-export([bin_to_hexstr/1,hexstr_to_bin/1]).
+-spec bin_to_hexstr(binary()) -> string().
bin_to_hexstr(Bin) ->
lists:flatten([io_lib:format("~2.16.0B", [X]) ||
X <- binary_to_list(Bin)]).