Use struct notation in the README example

This commit is contained in:
Carlos Martín Nieto
2014-09-17 05:05:36 +02:00
parent 3a48fb191e
commit e8b3b19d0d

View File

@@ -46,7 +46,7 @@ ref = Reference.lookup!(repo, "HEAD") |> Reference.resolve!
references, objects, etc are elixir records. Trees implement the Access protocol
```elixir
Reference[name: name] = Reference.lookup!(repo, "refs/heads/master")
%Reference{name: name} = Reference.lookup!(repo, "refs/heads/master")
IO.puts name
{:ok, tree} = Tree.lookup(repo, "abcde...")
IO.inspect tree["src/geef_pkt.erl"]