From 49842b1d0ce390f1afbd14f665b499960f4db613 Mon Sep 17 00:00:00 2001 From: Alban Mouton Date: Sat, 13 Sep 2014 22:26:57 +0200 Subject: [PATCH] small typo --- README.md | 2 +- index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5adc92a..42af704 100644 --- a/README.md +++ b/README.md @@ -136,7 +136,7 @@ If no callback is given the function will run synchronously and return the resul **Params** - source `string` | `Document` - The XML content to validate with the schema, to be given as a string or a [libxmljs document](https://github.com/polotek/libxmljs/wiki/Document) -- \[callback\] [validateCallback](#Schema..validateCallback) - The callback that handles the response. Expects err an array of validation errors. +- \[callback\] [validateCallback](#Schema..validateCallback) - The callback that handles the response. Expects err and an array of validation errors. **Returns**: `string` | `Document` - Only if no callback is given. An array of validation errors, empty if ok. diff --git a/index.js b/index.js index 9a76cc2..8790c96 100644 --- a/index.js +++ b/index.js @@ -83,7 +83,7 @@ exports.parseFile = function(sourcePath, callback) { * If no callback is given the function will run synchronously and return the result or throw an error. * * @param {string|Document} source - The XML content to validate with the schema, to be given as a string or a [libxmljs document]{@link https://github.com/polotek/libxmljs/wiki/Document} - * @param {Schema~validateCallback} [callback] - The callback that handles the response. Expects err an array of validation errors. + * @param {Schema~validateCallback} [callback] - The callback that handles the response. Expects err and an array of validation errors. * @return {string|Document} Only if no callback is given. An array of validation errors, empty if ok. */ Schema.prototype.validate = function(source, callback) {