Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #46 from runejuhl/dialyze-fixes

Fix buggy argument to io_lib:format.
  • Loading branch information...
commit 58410c498c759a7c6cc5678c31de4bf71d7ad3e3 2 parents ab826e1 + bef80b7
@evanmiller evanmiller authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/inflector.erl
View
2  src/inflector.erl
@@ -87,7 +87,7 @@ moduleize(TableName) ->
ordinalize(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) =:= 2 -> io_lib:format("~Bnd", [N]);
ord(N) when (N rem 10) =:= 3 -> io_lib:format("~Brd", [N]);
Please sign in to comment.
Something went wrong with that request. Please try again.