From 9030664ec6b2d69b845b227038e6a6d3293283c1 Mon Sep 17 00:00:00 2001 From: Izel Nakri Date: Mon, 12 Sep 2016 13:01:34 +0200 Subject: [PATCH] better name for a code example in the homepage --- index.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 54f6655ce..880a15a6f 100644 --- a/index.html +++ b/index.html @@ -27,11 +27,11 @@

Scalability

All Elixir code runs inside lightweight threads of execution (called processes) that are isolated and exchange information via messages:

{% highlight elixir %} -parent = self() +current_process = self() # Spawns an Elixir process (not an operating system one!) spawn_link(fn -> - send parent, {:msg, "hello world"} + send current_process, {:msg, "hello world"} end) # Block until the message is received @@ -175,4 +175,3 @@

Erlang compatible

-