Commit 3f78a026 authored by Milo Yip's avatar Milo Yip Committed by GitHub

Merge pull request #903 from shadeware/patch-1

fix typos in doc code
parents e5635fb2 a38104a1
...@@ -20,7 +20,7 @@ Secondly, construct a `SchemaValidator` with the `SchemaDocument`. It is similar ...@@ -20,7 +20,7 @@ Secondly, construct a `SchemaValidator` with the `SchemaDocument`. It is similar
// ... // ...
Document sd; Document sd;
if (!sd.Parse(schemaJson).HasParseError()) { if (sd.Parse(schemaJson).HasParseError()) {
// the schema is not a valid JSON. // the schema is not a valid JSON.
// ... // ...
} }
...@@ -28,7 +28,7 @@ SchemaDocument schema(sd); // Compile a Document to SchemaDocument ...@@ -28,7 +28,7 @@ SchemaDocument schema(sd); // Compile a Document to SchemaDocument
// sd is no longer needed here. // sd is no longer needed here.
Document d; Document d;
if (!d.Parse(inputJson).HasParseError()) { if (d.Parse(inputJson).HasParseError()) {
// the input is not a valid JSON. // the input is not a valid JSON.
// ... // ...
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment