Skip to content

Commit 2648a73

Browse files
authored
Merge pull request Tencent#1557 from MBoldyrev/doc/fix-uint-case
Documentation: fixed Uint case
2 parents d87b698 + 8973b27 commit 2648a73

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

doc/internals.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ The following tables show the data layout of each type. The 32-bit/64-bit column
7979
| `unsigned u` | 32-bit unsigned integer |4 |4 |
8080
| (zero padding) | 0 |4 |4 |
8181
| (unused) | |4 |8 |
82-
| `unsigned flags_` | `kNumberType kNumberFlag kUIntFlag kUInt64Flag ...` |4 |4 |
82+
| `unsigned flags_` | `kNumberType kNumberFlag kUintFlag kUint64Flag ...` |4 |4 |
8383

8484
| Number (Int64) | |32-bit|64-bit|
8585
|---------------------|-------------------------------------|:----:|:----:|

doc/internals.zh-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ SAX 和 DOM API 都依赖于3个额外的概念:`Allocator`、`Encoding` 和 `
7979
| `unsigned u` | 32位无符号整数 |4 |4 |
8080
| (零填充) | 0 |4 |4 |
8181
| (未使用) | |4 |8 |
82-
| `unsigned flags_` | `kNumberType kNumberFlag kUIntFlag kUInt64Flag ...` |4 |4 |
82+
| `unsigned flags_` | `kNumberType kNumberFlag kUintFlag kUint64Flag ...` |4 |4 |
8383

8484
| Number (Int64) | | 32位 | 64位 |
8585
|---------------------|-------------------------------------|:----:|:----:|

doc/sax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Bool(false)
3737
Key("n", 1, true)
3838
Null()
3939
Key("i")
40-
UInt(123)
40+
Uint(123)
4141
Key("pi")
4242
Double(3.1416)
4343
Key("a")

doc/sax.zh-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Bool(false)
3737
Key("n", 1, true)
3838
Null()
3939
Key("i")
40-
UInt(123)
40+
Uint(123)
4141
Key("pi")
4242
Double(3.1416)
4343
Key("a")

doc/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ JSON number type represents all numeric values. However, C++ needs more specific
8282
~~~~~~~~~~cpp
8383
assert(document["i"].IsNumber());
8484

85-
// In this case, IsUint()/IsInt64()/IsUInt64() also return true.
85+
// In this case, IsUint()/IsInt64()/IsUint64() also return true.
8686
assert(document["i"].IsInt());
8787
printf("i = %d\n", document["i"].GetInt());
8888
// Alternative (int)document["i"]

doc/tutorial.zh-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ JSON Number 类型表示所有数值。然而,C++ 需要使用更专门的类
8282
~~~~~~~~~~cpp
8383
assert(document["i"].IsNumber());
8484

85-
// 在此情况下,IsUint()/IsInt64()/IsUInt64() 也会返回 true
85+
// 在此情况下,IsUint()/IsInt64()/IsUint64() 也会返回 true
8686
assert(document["i"].IsInt());
8787
printf("i = %d\n", document["i"].GetInt());
8888
// 另一种用法: (int)document["i"]

example/tutorial/tutorial.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ int main(int, char*[]) {
5757
printf("n = %s\n", document["n"].IsNull() ? "null" : "?");
5858

5959
assert(document["i"].IsNumber()); // Number is a JSON type, but C++ needs more specific type.
60-
assert(document["i"].IsInt()); // In this case, IsUint()/IsInt64()/IsUInt64() also return true.
60+
assert(document["i"].IsInt()); // In this case, IsUint()/IsInt64()/IsUint64() also return true.
6161
printf("i = %d\n", document["i"].GetInt()); // Alternative (int)document["i"]
6262

6363
assert(document["pi"].IsNumber());

0 commit comments

Comments
 (0)