Skip to content

Commit

Permalink
small typo
Browse files Browse the repository at this point in the history
  • Loading branch information
albanm committed Sep 13, 2014
1 parent c4c0b75 commit 49842b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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\] <code>[validateCallback](#Schema..validateCallback)</code> - The callback that handles the response. Expects err an array of validation errors.
- \[callback\] <code>[validateCallback](#Schema..validateCallback)</code> - 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.
<a name="module_libxml-xsd..Schema#validateToFile"></a>
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 49842b1

Please sign in to comment.