Merge pull request #903 from shadeware/patch-1

fix typos in doc code
This commit is contained in:
Milo Yip 2017-03-20 11:18:56 +08:00 committed by GitHub
commit 3f78a026c7

View File

@ -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
// 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.
// ... // ...
} }