From 44ef693d6d043c167a6f66bf93be1b2d5a138ffa Mon Sep 17 00:00:00 2001 From: Jan Piotrowski Date: Mon, 10 Jul 2017 11:48:49 +0200 Subject: [PATCH] Fix README (#145) --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 92c12e2..12b6fcc 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ The device his printing capabilities can be reviewed through the `printer.check` ```javascript /** - * Checks if the printer service is avaible (iOS) + * Checks if the printer service is available (iOS) * or if printer services are installed and enabled (Android). * * @param {Function} callback @@ -93,8 +93,8 @@ The device his printing capabilities can be reviewed through the `printer.check` * Optional scope of the callback * Defaults to: window */ -cordova.plugins.printer.check(function (avail, count) { - alert(avail ? 'Found ' + count + ' services' : 'No'); +cordova.plugins.printer.check(function (available, count) { + alert(available ? 'Found ' + count + ' services' : 'No'); }); ```