This commit is contained in:
Nikhil Thomas 2014-09-18 13:41:47 -04:00
parent 82b5e67c20
commit 27c7f4c4f0

View File

@ -360,7 +360,7 @@ spawn(f) #=> #PID<0.40.0>
# `spawn` returns a pid (process identifier), you can use this pid to send # `spawn` returns a pid (process identifier), you can use this pid to send
# messages to the process. To do message passing we use the `send` operator. # messages to the process. To do message passing we use the `send` operator.
# For all of this to be useful we need to be able to receive messages. This is # For all of this to be useful we need to be able to receive messages. This is
# achived with the `receive` mechanism: # achieved with the `receive` mechanism:
defmodule Geometry do defmodule Geometry do
def area_loop do def area_loop do
receive do receive do