Skip to content

Commit

Permalink
Update dom.zh-cn.md
Browse files Browse the repository at this point in the history
  • Loading branch information
miloyip committed Jul 20, 2015
1 parent 8c0e50f commit f431aaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/dom.zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ GenericDocument& GenericDocument::Parse(const Ch* str);
## 解析错误 {#ParseError}
当解析过程顺利完成,`Document`便会含有解析结果。当过程出现错误,原来的DOM会*维持不便*。可使用`bool HasParseError()`、`ParseErrorCode GetParseError()`及`size_t GetParseOffet()`获取解析的错误状态。
当解析过程顺利完成,`Document`便会含有解析结果。当过程出现错误,原来的DOM会*维持不便*。可使用`bool HasParseError()`、`ParseErrorCode GetParseError()`及`size_t GetParseOffset()`获取解析的错误状态。
解析错误代号 | 描述
--------------------------------------------|---------------------------------------------------
Expand Down Expand Up @@ -159,8 +159,8 @@ GenericDocument& GenericDocument::Parse(const Ch* str);
Document d;
if (d.Parse(json).HasParseError()) {
fprintf(stderr, "\nError(offset %u): %s\n",
(unsigned)reader.GetErrorOffset(),
GetParseError_En(reader.GetParseErrorCode()));
(unsigned)d.GetErrorOffset(),
GetParseError_En(d.GetParseErrorCode()));
// ...
}
~~~~~~~~~~
Expand Down

0 comments on commit f431aaf

Please sign in to comment.