diff options
author | Hans Bolinder <[email protected]> | 2011-07-05 14:26:37 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2011-07-05 14:26:37 +0200 |
commit | b681c4c073381c57ac9982a4fa96dbc780190a92 (patch) | |
tree | 86601405902cbbc043f8dc89c24ef69eafe6b12f /lib/stdlib/src | |
parent | e909414b27ab8ea36c4f4fec4779a244434c91f4 (diff) | |
download | otp-b681c4c073381c57ac9982a4fa96dbc780190a92.tar.gz otp-b681c4c073381c57ac9982a4fa96dbc780190a92.tar.bz2 otp-b681c4c073381c57ac9982a4fa96dbc780190a92.zip |
Correct the contract of io_lib:fread/2,3
Diffstat (limited to 'lib/stdlib/src')
-rw-r--r-- | lib/stdlib/src/io_lib.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stdlib/src/io_lib.erl b/lib/stdlib/src/io_lib.erl index 54c7283abf..165e03e506 100644 --- a/lib/stdlib/src/io_lib.erl +++ b/lib/stdlib/src/io_lib.erl @@ -100,7 +100,7 @@ fwrite(Format, Args) -> -spec fread(Format, String) -> Result when Format :: string(), String :: string(), - Result :: {'ok', InputList :: chars(), LeftOverChars :: string()} + Result :: {'ok', InputList :: [term()], LeftOverChars :: string()} | {'more', RestFormat :: string(), Nchars :: non_neg_integer(), InputStack :: chars()} @@ -115,7 +115,7 @@ fread(Chars, Format) -> Format :: string(), Return :: {'more', Continuation1 :: continuation()} | {'done', Result, LeftOverChars :: string()}, - Result :: {'ok', InputList :: chars()} + Result :: {'ok', InputList :: [term()]} | 'eof' | {'error', What :: term()}. |