diff --git a/README.md b/README.md index b60522d1e..5d8c666fa 100644 --- a/README.md +++ b/README.md @@ -107,13 +107,13 @@ clone("https://github.com/nodegit/nodegit", "tmp", null, function(err, repo) { // Look up this known commit. repo.getCommit(sha, function(err, commit) { if (err) { - throw error; + throw err; } // Look up a specific file within that commit. commit.getEntry("README.md", function(err, entry) { if (err) { - throw error; + throw err; } // Get the blob contents from the file.