Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Corrected 'illegal pattern' syntax error. #31

Open
wants to merge 1 commit into from

1 participant

@bryanhunter

Replaced a "!" with a "," to correct "illegal pattern"

$ erlc demo1.erl
demo1.erl:13: 
demo1.erl:13: illegal pattern
demo1.erl:14: variable 'From' is unbound
demo1.erl:14: variable 'N' is unbound

Complete corrected sample: https://gist.github.com/bryanhunter/7994399

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 16, 2013
  1. @bryanhunter
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  _posts/2013-11-21-My-favorite-erlang-program.md
View
2  _posts/2013-11-21-My-favorite-erlang-program.md
@@ -48,7 +48,7 @@ factorial of an integer. This is mind-boggling simple:
{% highlight erlang %}
factorial_server() ->
receive
- {From ! N} ->
+ {From, N} ->
From ! factorial(N),
factorial_server()
end.
Something went wrong with that request. Please try again.