Permalink
Browse files

Fix eval_quoted documentation

  • Loading branch information...
1 parent 5964f7c commit a54b99765e10e1541cf62441922fd56d51950627 @rafaelfranca rafaelfranca committed Feb 21, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/code.ex
View
@@ -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)
@@ -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.