Skip to content

Commit 430e8d4

Browse files
authored
Update schema.zh-cn.md
1 parent 3f78a02 commit 430e8d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/schema.zh-cn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ RapidJSON 实现了一个 [JSON Schema Draft v4](http://json-schema.org/document
2020
// ...
2121

2222
Document sd;
23-
if (!sd.Parse(schemaJson).HasParseError()) {
23+
if (sd.Parse(schemaJson).HasParseError()) {
2424
// 此 schema 不是合法的 JSON
2525
// ...
2626
}
2727
SchemaDocument schema(sd); // 把一个 Document 编译至 SchemaDocument
2828
// 之后不再需要 sd
2929

3030
Document d;
31-
if (!d.Parse(inputJson).HasParseError()) {
31+
if (d.Parse(inputJson).HasParseError()) {
3232
// 输入不是一个合法的 JSON
3333
// ...
3434
}

0 commit comments

Comments
 (0)