From e8b3b19d0dc1af3b09202e5edb13f826a1369a2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Wed, 17 Sep 2014 05:05:36 +0200 Subject: [PATCH] Use struct notation in the README example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a7b031e..55478d2 100644 --- a/README.md +++ b/README.md @@ -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"]