aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJosé Valim <[email protected]>2013-07-21 09:12:11 +0200
committerJosé Valim <[email protected]>2013-07-21 09:12:11 +0200
commitc145a2703ccf773614d64c6c57fd2231d5deb91f (patch)
tree412435ded3c94af435ad32f8e7fae38d4ae5c998 /lib
parentc6f452c340ad1749ce91c037a4820ea0feb0a644 (diff)
downloadotp-c145a2703ccf773614d64c6c57fd2231d5deb91f.tar.gz
otp-c145a2703ccf773614d64c6c57fd2231d5deb91f.tar.bz2
otp-c145a2703ccf773614d64c6c57fd2231d5deb91f.zip
Update io:prompt() type
Functions that expect an io:prompt() also accept binaries and iolists as arguments. Therefore its type has been updated to reflect the same types accepted by other io functions.
Diffstat (limited to 'lib')
-rw-r--r--lib/stdlib/src/io.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stdlib/src/io.erl b/lib/stdlib/src/io.erl
index 53728237ca..b11d41e2eb 100644
--- a/lib/stdlib/src/io.erl
+++ b/lib/stdlib/src/io.erl
@@ -40,7 +40,7 @@
%%-------------------------------------------------------------------------
-type device() :: atom() | pid().
--type prompt() :: atom() | string().
+-type prompt() :: atom() | unicode:chardata().
%% ErrorDescription is whatever the I/O-server sends.
-type server_no_data() :: {'error', ErrorDescription :: term()} | 'eof'.