Skip to content

Commit 12ccdcf

Browse files
committed
Include document_stream line in parse_many docs
1 parent 1b1a122 commit 12ccdcf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/basics.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,8 @@ Here is a simple example, given "x.json" with this content:
489489

490490
```c++
491491
dom::parser parser;
492-
for (dom::element doc : parser.load_many(filename)) {
492+
dom::document_stream docs = parser.load_many(filename);
493+
for (dom::element doc : docs) {
493494
cout << doc["foo"] << endl;
494495
}
495496
// Prints 1 2 3

0 commit comments

Comments
 (0)