summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMax Schumacher <maximilianbschumacher@gmail.com>2020-08-17 15:06:53 +0200
committerGitHub <noreply@github.com>2020-08-17 15:06:53 +0200
commitb15906a5e6f4b1bf2746162bdb3dea344b0a9087 (patch)
tree83648da9a4b122f65ae7c07e7be2a741a8de8f06
parent118c521255c73499b8c0ca61f30623ce3012189e (diff)
parent6f9362b080b3b7ef2728a631acd3f5417382db4f (diff)
Merge pull request #3876 from dwtong/patch-1
[elixir/en] Use correct pattern matching for Elixir
-rw-r--r--elixir.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/elixir.html.markdown b/elixir.html.markdown
index 0226ecaf..8b80c582 100644
--- a/elixir.html.markdown
+++ b/elixir.html.markdown
@@ -439,7 +439,7 @@ self() #=> #PID<0.27.0>
# Create an agent with `Agent.start_link`, passing in a function
# The initial state of the agent will be whatever that function returns
-{ok, my_agent} = Agent.start_link(fn -> ["red", "green"] end)
+{:ok, my_agent} = Agent.start_link(fn -> ["red", "green"] end)
# `Agent.get` takes an agent name and a `fn` that gets passed the current state
# Whatever that `fn` returns is what you'll get back