mirror of
https://github.com/Tencent/rapidjson
synced 2026-08-26 06:23:05 -04:00
fixed Uint case in docs
This commit is contained in:
parent
d87b698d0f
commit
8973b279cf
7 changed files with 7 additions and 7 deletions
|
|
@ -57,7 +57,7 @@ int main(int, char*[]) {
|
|||
printf("n = %s\n", document["n"].IsNull() ? "null" : "?");
|
||||
|
||||
assert(document["i"].IsNumber()); // Number is a JSON type, but C++ needs more specific type.
|
||||
assert(document["i"].IsInt()); // In this case, IsUint()/IsInt64()/IsUInt64() also return true.
|
||||
assert(document["i"].IsInt()); // In this case, IsUint()/IsInt64()/IsUint64() also return true.
|
||||
printf("i = %d\n", document["i"].GetInt()); // Alternative (int)document["i"]
|
||||
|
||||
assert(document["pi"].IsNumber());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue