Update basics.md

This commit is contained in:
Daniel Lemire 2021-03-12 14:23:01 -05:00 committed by GitHub
parent 221c55b620
commit 0dc07b34a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ The simdjson library offers a tree API, which you can access by creating a
```c++ ```c++
ondemand::parser parser; ondemand::parser parser;
auto json = padded_string::load("twitter.json"); auto json = padded_string::load("twitter.json");
ondemand::document doc = parser.iterate(json); // load and parse a file ondemand::document doc = parser.iterate(json); // position a pointer at the beginning of the JSON data
``` ```
Or by creating a padded string (for efficiency reasons, simdjson requires a string with Or by creating a padded string (for efficiency reasons, simdjson requires a string with