Skip to content

Commit 001be23

Browse files
authored
Being more specific regarding the padding. (simdjson#1228)
* Being more specific regarding the padding. * Even more precise.
1 parent c85b668 commit 001be23

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/basics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ SIMDJSON_PADDING bytes at the end) and calling `parse()`:
108108

109109
```c++
110110
dom::parser parser;
111-
dom::element doc = parser.parse("[1,2,3]"_padded); // parse a string
111+
dom::element doc = parser.parse("[1,2,3]"_padded); // parse a string, the _padded suffix creates a simdjson::padded_string instance
112112
```
113113

114114
The parsed document resulting from the `parser.load` and `parser.parse` calls depends on the `parser` instance. Thus the `parser` instance must remain in scope. Furthermore, you must have at most one parsed document in play per `parser` instance.

doc/basics_doxygen.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ SIMDJSON_PADDING bytes at the end) and calling `parse()`:
8989

9090
```
9191
dom::parser parser;
92-
dom::element doc = parser.parse("[1,2,3]"_padded); // parse a string
92+
dom::element doc = parser.parse("[1,2,3]"_padded); // parse a string, the _padded suffix creates a simdjson::padded_string instance
9393
```
9494

9595
The parsed document resulting from the `parser.load` and `parser.parse` calls depends on the `parser` instance. Thus the `parser` instance must remain in scope. Furthermore, you must have at most one parsed document in play per `parser` instance.

0 commit comments

Comments
 (0)