Skip to content

Commit

Permalink
Fix eval_quoted documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Feb 28, 2012
1 parent 5964f7c commit a54b997
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/code.ex
Expand Up @@ -33,8 +33,8 @@ defmodule Code do
#
# ## Examples
#
# contents = quote do: a + b
# Code.eval_quoted contents, [a: 1, b: 2], __FILE__, __LINE__ # => 3
# contents = quote hygiene: false, do: a + b
# Code.eval_quoted contents, [a: 1, b: 2], __FILE__, __LINE__ # => { 3, [ {:a,1},{:b,2} ] }
#
def eval_quoted(quoted, binding, filename, line) do
Erlang.elixir.eval_quoted [quoted], binding, line, to_char_list(filename)
Expand Down Expand Up @@ -134,4 +134,4 @@ defmodule Code do
defp server_call(args) do
Erlang.gen_server.call(:elixir_code_server, args)
end
end
end

0 comments on commit a54b997

Please sign in to comment.