Skip to content

Commit

Permalink
Merge pull request dynamo#165 from parroty/fix
Browse files Browse the repository at this point in the history
Fix typo on module attribute
  • Loading branch information
José Valim committed Dec 1, 2013
2 parents 7bfe1c5 + 9c6ed02 commit 6e92de0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dynamo/templates/renderer.ex
Expand Up @@ -82,7 +82,7 @@ defmodule Dynamo.Templates.Renderer do
end end


defp raise_too_busy(Template[identifier: identifier]) do defp raise_too_busy(Template[identifier: identifier]) do
raise "Compiling template #{inspect identifier} exceeded the max number of attempts #{@max_attemps}. What gives?" raise "Compiling template #{inspect identifier} exceeded the max number of attempts #{@max_attempts}. What gives?"
end end


## Backend ## Backend
Expand Down Expand Up @@ -137,7 +137,7 @@ defmodule Dynamo.Templates.Renderer do
:code.purge(module) :code.purge(module)
end end


defp generate_suggestion(name, attempts) when attempts < @max_attemps do defp generate_suggestion(name, attempts) when attempts < @max_attempts do
random = :random.uniform(@slots) random = :random.uniform(@slots)
module = Module.concat(name, "T#{random}") module = Module.concat(name, "T#{random}")


Expand Down

0 comments on commit 6e92de0

Please sign in to comment.