Skip to content

Commit f5635b6

Browse files
committed
Updated macro code example, def -> defmacro
1 parent 380edc4 commit f5635b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_posts/2013-08-08-elixir-design-goals.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ For this reason, we have opted for a small language core. For example, while som
4343
Here is an example of how someone would implement `unless`, which is a keyword in many languages, in Elixir:
4444

4545
```elixir
46-
def unless(expr, opts) do
46+
defmacro unless(expr, opts) do
4747
quote do
4848
if(!unquote(expr), unquote(opts))
4949
end

0 commit comments

Comments
 (0)