diff --git a/COOKBOOK.md b/COOKBOOK.md index 290a02f..2382c78 100644 --- a/COOKBOOK.md +++ b/COOKBOOK.md @@ -119,9 +119,9 @@ var jsonp = require('jsonp'); jsonp('http://www.example.com/foo', null, function (err, data) { if (err) { - console.error(error.message); + console.error(err.message); } else { console.log(data); } }); -``` \ No newline at end of file +``` diff --git a/README.md b/README.md index be573d6..4b13f00 100644 --- a/README.md +++ b/README.md @@ -121,7 +121,7 @@ axios({ ##### axios(url[, config]) ```js -// Sned a GET request (default method) +// Send a GET request (default method) axios('/user/12345'); ```