fix parseError documentation to match reality

This commit is contained in:
Tim Maffett
2022-05-05 11:49:27 -07:00
parent 67b6414693
commit 0df80d2b52

View File

@@ -29,7 +29,7 @@ statement
In the extract of the grammar above, it is defined that a call to the setTitle method in the data object will be done when parsing and the title keyword is encountered. In the extract of the grammar above, it is defined that a call to the setTitle method in the data object will be done when parsing and the title keyword is encountered.
```tip ```tip
Make sure that the `parseError` function for the parser is defined and calling `mermaidPAI.parseError`. This way a common way of detecting parse errors is provided for the end-user. Make sure that the `parseError` function for the parser is defined and calling `mermaid.parseError`. This way a common way of detecting parse errors is provided for the end-user.
``` ```
For more info look in the example diagram type: For more info look in the example diagram type:
@@ -38,7 +38,7 @@ The `yy` object has the following function:
```javascript ```javascript
exports.parseError = function(err, hash){ exports.parseError = function(err, hash){
mermaidAPI.parseError(err, hash) mermaid.parseError(err, hash)
}; };
``` ```