aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/file.erl
diff options
context:
space:
mode:
authorNiclas Axelsson <[email protected]>2011-02-18 18:10:59 +0100
committerNiclas Axelsson <[email protected]>2011-02-18 18:11:09 +0100
commitb0d6abb72cf32df548703b284b737a4a7c0a9d8a (patch)
tree87a0c9032ad8d10d2e76955e134978caf7188edc /lib/kernel/src/file.erl
parentc67ce7f6a77fa8597da2f1ab511bcd0fcfc57b16 (diff)
parentd26eac5356b674ee7c26567952a659b72654d40a (diff)
downloadotp-b0d6abb72cf32df548703b284b737a4a7c0a9d8a.tar.gz
otp-b0d6abb72cf32df548703b284b737a4a7c0a9d8a.tar.bz2
otp-b0d6abb72cf32df548703b284b737a4a7c0a9d8a.zip
Merge branch 'mh/file-fix_spec' into dev
* mh/file-fix_spec: Fix -spec for file:write_file/3 OTP-9067
Diffstat (limited to 'lib/kernel/src/file.erl')
-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) ->