pad2 spec fix
This commit is contained in:
parent
d052e63ba5
commit
8dd9f826db
1 changed files with 1 additions and 1 deletions
|
@ -680,7 +680,7 @@ iso_week_one(Y) ->
|
||||||
itol(X) ->
|
itol(X) ->
|
||||||
integer_to_list(X).
|
integer_to_list(X).
|
||||||
|
|
||||||
-spec pad2(integer()) -> list().
|
-spec pad2(integer() | float()) -> list().
|
||||||
%% @doc int padded with 0 to make sure its 2 chars
|
%% @doc int padded with 0 to make sure its 2 chars
|
||||||
pad2(X) when is_integer(X) ->
|
pad2(X) when is_integer(X) ->
|
||||||
io_lib:format("~2.10.0B",[X]);
|
io_lib:format("~2.10.0B",[X]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue