Fix some type

This commit is contained in:
Ria Cataquian
2016-05-08 04:16:06 +08:00
parent 97a60b095a
commit bb4959ddc0
3 changed files with 4 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ defmodule PatternMatching do
assert a == ___
end
koan "A variable can be pinned to be prevent it from being rebound" do
koan "A variable can be pinned to prevent it from being rebounded" do
a = 1
assert_raise MatchError, fn() ->
^a = ___

View File

@@ -35,7 +35,7 @@ defmodule Functions do
def sum_up(_thing), do: :single_thing
koan "Functions can have guard expressions" do
assert sum_up([1 ,2 ,3]) == ___
assert sum_up([1, 2, 3]) == ___
assert sum_up(1) == ___
end

View File

@@ -81,8 +81,8 @@ defmodule Processes do
koan "Processes can be used to hold state" do
initial_state = "foo"
pid = spawn(fn ->
state(initial_state)
end)
state(initial_state)
end)
send pid, {self, :get}
assert_receive ___