mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2024-12-26 18:51:04 +08:00
fix doc
This commit is contained in:
parent
6065a1c142
commit
472d29f57b
@ -81,8 +81,8 @@ root["indent"]["use_space"] = getCurrentIndentUseSpace();
|
|||||||
|
|
||||||
// To write into a steam with minimal memory overhead,
|
// To write into a steam with minimal memory overhead,
|
||||||
// create a Builder for a StreamWriter.
|
// create a Builder for a StreamWriter.
|
||||||
Json::StreamWriter::Builder builder;
|
Json::StreamWriterBuilder builder;
|
||||||
builder.withIndentation(" "); // or whatever you like
|
builder.indentation_ = " "; // or whatever you like
|
||||||
|
|
||||||
// Then build a StreamWriter.
|
// Then build a StreamWriter.
|
||||||
std::shared_ptr<Json::StreamWriter> writer(
|
std::shared_ptr<Json::StreamWriter> writer(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user