aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMagnus Henoch <[email protected]>2011-02-14 11:54:22 +0000
committerNiclas Axelsson <[email protected]>2011-02-14 13:38:11 +0100
commitd26eac5356b674ee7c26567952a659b72654d40a (patch)
tree869147795e4a15e3000507e8c3709d7144ac2b20
parent6e396e67664be90a13c3119a0c766019dd889845 (diff)
downloadotp-d26eac5356b674ee7c26567952a659b72654d40a.tar.gz
otp-d26eac5356b674ee7c26567952a659b72654d40a.tar.bz2
otp-d26eac5356b674ee7c26567952a659b72654d40a.zip
Fix -spec for file:write_file/3
Change type for second parameter from binary() to iodata(), since the function explicitly takes steps to accept lists as well as binaries.
-rw-r--r--lib/kernel/src/file.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kernel/src/file.erl b/lib/kernel/src/file.erl
index bc95359986..3aca9b4b0d 100644
--- a/lib/kernel/src/file.erl
+++ b/lib/kernel/src/file.erl
@@ -240,7 +240,7 @@ write_file(Name, Bin) ->
%% when it is time to change file server protocol again.
%% Meanwhile, it is implemented here, slightly less efficient.
--spec write_file(Name :: name(), Bin :: binary(), Modes :: [mode()]) ->
+-spec write_file(Name :: name(), Bin :: iodata(), Modes :: [mode()]) ->
'ok' | {'error', posix()}.
write_file(Name, Bin, ModeList) when is_list(ModeList) ->