From 0df80d2b52f7939c91d6535559672c3c23f12315 Mon Sep 17 00:00:00 2001 From: Tim Maffett Date: Thu, 5 May 2022 11:49:27 -0700 Subject: [PATCH] fix parseError documentation to match reality --- docs/newDiagram.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/newDiagram.md b/docs/newDiagram.md index 995bdaa5c..e64f374df 100644 --- a/docs/newDiagram.md +++ b/docs/newDiagram.md @@ -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. ```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: @@ -38,7 +38,7 @@ The `yy` object has the following function: ```javascript exports.parseError = function(err, hash){ - mermaidAPI.parseError(err, hash) + mermaid.parseError(err, hash) }; ```