Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
R
rapidjson
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
rapidjson
Commits
2a5e733b
Unverified
Commit
2a5e733b
authored
Sep 19, 2018
by
Milo Yip
Committed by
GitHub
Sep 19, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1364 from jcourtat/fixfaq
faq: fix document insertion example
parents
c0ca05f6
68349ed9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
faq.md
doc/faq.md
+1
-1
faq.zh-cn.md
doc/faq.zh-cn.md
+1
-1
No files found.
doc/faq.md
View file @
2a5e733b
...
...
@@ -144,7 +144,7 @@
Simple yet most efficient way to achieve that is to modify the
`address`
definition above to initialize it with allocator of the
`person`
document, then we just add the root member of the value:
~~~~~~~~~~cpp
Document address(person.GetAllocator());
Document address(
&
person.GetAllocator());
...
person
[
"person"
]
.AddMember("address", address
[
"address"
]
, person.GetAllocator());
~~~~~~~~~~
...
...
doc/faq.zh-cn.md
View file @
2a5e733b
...
...
@@ -145,7 +145,7 @@
一个简单有效的方法就是修改上述
`address`
变量的定义,让其使用
`person`
的 allocator 初始化,然后将其添加到根节点。
~~~~~~~~~~cpp
Documnet address(person.GetAllocator());
Documnet address(
&
person.GetAllocator());
...
person
[
"person"
]
.AddMember("address", address
[
"address"
]
, person.GetAllocator());
~~~~~~~~~~
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment