Merge pull request #668 from src-d/eiso-patch-1

Updating the outdated README example to the new one
diff --git a/README.md b/README.md
index 86c7634..bd22288 100644
--- a/README.md
+++ b/README.md
@@ -76,18 +76,17 @@
 ref, err := r.Head()
 CheckIfError(err)
 
-// ... retrieves the commit object
-commit, err := r.CommitObject(ref.Hash())
-CheckIfError(err)
 
 // ... retrieves the commit history
-history, err := commit.History()
+cIter, err := r.Log(&git.LogOptions{From: ref.Hash()})
 CheckIfError(err)
 
 // ... just iterates over the commits, printing it
-for _, c := range history {
-    fmt.Println(c)
-}
+err = cIter.ForEach(func(c *object.Commit) error {
+	fmt.Println(c)
+	return nil
+})
+CheckIfError(err)
 ```
 
 Outputs: