Skip to content

Commit 3f78a02

Browse files
authored
Merge pull request Tencent#903 from shadeware/patch-1
fix typos in doc code
2 parents e5635fb + a38104a commit 3f78a02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/schema.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ Secondly, construct a `SchemaValidator` with the `SchemaDocument`. It is similar
2020
// ...
2121

2222
Document sd;
23-
if (!sd.Parse(schemaJson).HasParseError()) {
23+
if (sd.Parse(schemaJson).HasParseError()) {
2424
// the schema is not a valid JSON.
2525
// ...
2626
}
2727
SchemaDocument schema(sd); // Compile a Document to SchemaDocument
2828
// sd is no longer needed here.
2929

3030
Document d;
31-
if (!d.Parse(inputJson).HasParseError()) {
31+
if (d.Parse(inputJson).HasParseError()) {
3232
// the input is not a valid JSON.
3333
// ...
3434
}

0 commit comments

Comments
 (0)