Skip to content

Commit

Permalink
Merge pull request #46 from runejuhl/dialyze-fixes
Browse files Browse the repository at this point in the history
Fix buggy argument to io_lib:format.
  • Loading branch information
evanmiller committed Oct 26, 2012
2 parents ab826e1 + bef80b7 commit 58410c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inflector.erl
Expand Up @@ -87,7 +87,7 @@ moduleize(TableName) ->
ordinalize(N) -> ordinalize(N) ->
lists:flatten( ord(N) ). lists:flatten( ord(N) ).


ord(N) when (N rem 100 >= 11) and (N rem 100 =< 13) -> io_lib:format("~Bth", N); ord(N) when (N rem 100 >= 11) and (N rem 100 =< 13) -> io_lib:format("~Bth", [N]);
ord(N) when (N rem 10) =:= 1 -> io_lib:format("~Bst", [N]); ord(N) when (N rem 10) =:= 1 -> io_lib:format("~Bst", [N]);
ord(N) when (N rem 10) =:= 2 -> io_lib:format("~Bnd", [N]); ord(N) when (N rem 10) =:= 2 -> io_lib:format("~Bnd", [N]);
ord(N) when (N rem 10) =:= 3 -> io_lib:format("~Brd", [N]); ord(N) when (N rem 10) =:= 3 -> io_lib:format("~Brd", [N]);
Expand Down

0 comments on commit 58410c4

Please sign in to comment.