Skip to content

Commit

Permalink
Dot syntax instead of square brackets
Browse files Browse the repository at this point in the history
Changing the `[:city]` to `.city` resolves an UndefinedFunctionError as described in dwyl#20
  • Loading branch information
geekoftheweek authored Dec 31, 2018
1 parent 2397745 commit eb13f8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1120,8 +1120,8 @@ defmodule Append.AddressTest do
assert length(history) == 2
assert [h1, h2] = history
assert h1[:city] == "Asgard"
assert h2[:city] == "Oslo"
assert h1.city == "Asgard"
assert h2.city == "Oslo"
end
...
end
Expand Down

0 comments on commit eb13f8f

Please sign in to comment.