Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/miloyip/rapidjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshadeware <xdiagonx@gmail.com>2017-03-19 03:03:36 +0300
committerGitHub <noreply@github.com>2017-03-19 03:03:36 +0300
commita38104a165e3a7e4e1fc5647c6a7c19b968259b3 (patch)
treee0f606ed729a9df22e61664a45449d0e01602337
parente5635fb27feab7f6e8d7b916aa20ad799045a641 (diff)
fix typos in doc code
-rw-r--r--doc/schema.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/schema.md b/doc/schema.md
index 8b4195b7..29ba4f54 100644
--- a/doc/schema.md
+++ b/doc/schema.md
@@ -20,7 +20,7 @@ Secondly, construct a `SchemaValidator` with the `SchemaDocument`. It is similar
// ...
Document sd;
-if (!sd.Parse(schemaJson).HasParseError()) {
+if (sd.Parse(schemaJson).HasParseError()) {
// 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.
Document d;
-if (!d.Parse(inputJson).HasParseError()) {
+if (d.Parse(inputJson).HasParseError()) {
// the input is not a valid JSON.
// ...
}