Commit b34f1852 authored by Milo Yip's avatar Milo Yip

Fix tutorial bug

parent 62ff0a9d
......@@ -166,7 +166,7 @@ If we are unsure whether a member exists, we need to call `HasMember()` before c
~~~~~~~~~~cpp
Value::ConstMemberIterator itr = document.FindMember("hello");
if (itr != document.MemberEnd())
printf("%s %s\n", itr->value.GetString());
printf("%s\n", itr->value.GetString());
~~~~~~~~~~
## Querying Number {#QueryNumber}
......
......@@ -166,7 +166,7 @@ Type of member a is Array
~~~~~~~~~~cpp
Value::ConstMemberIterator itr = document.FindMember("hello");
if (itr != document.MemberEnd())
printf("%s %s\n", itr->value.GetString());
printf("%s\n", itr->value.GetString());
~~~~~~~~~~
## 查询 Number {#QueryNumber}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment