diff options
author | José Valim <[email protected]> | 2013-07-21 09:12:11 +0200 |
---|---|---|
committer | José Valim <[email protected]> | 2013-07-21 09:12:11 +0200 |
commit | c145a2703ccf773614d64c6c57fd2231d5deb91f (patch) | |
tree | 412435ded3c94af435ad32f8e7fae38d4ae5c998 | |
parent | c6f452c340ad1749ce91c037a4820ea0feb0a644 (diff) | |
download | otp-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.
-rw-r--r-- | lib/stdlib/src/io.erl | 2 |
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'. |