diff options
author | Hans Bolinder <[email protected]> | 2018-06-26 15:45:32 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2018-08-20 14:05:56 +0200 |
commit | 52ca4ae9db150cc89d44974e516589298b040c17 (patch) | |
tree | b3b7ae9f214362895a28c7b61c254d819d944f97 | |
parent | a00f10d6e65f64d3b47e7c32e82c6ccf611d46ff (diff) | |
download | otp-52ca4ae9db150cc89d44974e516589298b040c17.tar.gz otp-52ca4ae9db150cc89d44974e516589298b040c17.tar.bz2 otp-52ca4ae9db150cc89d44974e516589298b040c17.zip |
stdlib: Correct contracts in module io_lib_format
-rw-r--r-- | lib/stdlib/src/io_lib_format.erl | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/stdlib/src/io_lib_format.erl b/lib/stdlib/src/io_lib_format.erl index c814ab50d4..e247b00a04 100644 --- a/lib/stdlib/src/io_lib_format.erl +++ b/lib/stdlib/src/io_lib_format.erl @@ -38,18 +38,16 @@ %% and it also splits the handling of the control characters into two %% parts. --spec fwrite(Format, Data) -> FormatList when +-spec fwrite(Format, Data) -> io_lib:chars() when Format :: io:format(), - Data :: [term()], - FormatList :: [char() | io_lib:format_spec()]. + Data :: [term()]. fwrite(Format, Args) -> build(scan(Format, Args)). --spec fwrite(Format, Data, Options) -> FormatList when +-spec fwrite(Format, Data, Options) -> io_lib:chars() when Format :: io:format(), Data :: [term()], - FormatList :: [char() | io_lib:format_spec()], Options :: [Option], Option :: {'chars_limit', CharsLimit}, CharsLimit :: io_lib:chars_limit(). |