Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix buggy argument to io_lib:format. #46

Merged
merged 1 commit into from

2 participants

@runejuhl

No description provided.

@evanmiller evanmiller merged commit 58410c4 into ErlyORM:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 26, 2012
  1. @runejuhl
This page is out of date. Refresh to see the latest.
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]);
Something went wrong with that request. Please try again.