@@ -336,8 +336,8 @@ class element {
336336 * The key will be matched against **unescaped** JSON:
337337 *
338338 * dom::parser parser;
339- * parser.parse(R"({ "a\n": 1 })")["a\n"].get<uint64_t>().first == 1
340- * parser.parse(R"({ "a\n": 1 })")["a\\n"].get<uint64_t>().error() == NO_SUCH_FIELD
339+ * parser.parse(R"({ "a\n": 1 })"_padded )["a\n"].get<uint64_t>().first == 1
340+ * parser.parse(R"({ "a\n": 1 })"_padded )["a\\n"].get<uint64_t>().error() == NO_SUCH_FIELD
341341 *
342342 * @return The value associated with this field, or:
343343 * - NO_SUCH_FIELD if the field does not exist in the object
@@ -351,8 +351,8 @@ class element {
351351 * The key will be matched against **unescaped** JSON:
352352 *
353353 * dom::parser parser;
354- * parser.parse(R"({ "a\n": 1 })")["a\n"].get<uint64_t>().first == 1
355- * parser.parse(R"({ "a\n": 1 })")["a\\n"].get<uint64_t>().error() == NO_SUCH_FIELD
354+ * parser.parse(R"({ "a\n": 1 })"_padded )["a\n"].get<uint64_t>().first == 1
355+ * parser.parse(R"({ "a\n": 1 })"_padded )["a\\n"].get<uint64_t>().error() == NO_SUCH_FIELD
356356 *
357357 * @return The value associated with this field, or:
358358 * - NO_SUCH_FIELD if the field does not exist in the object
@@ -364,7 +364,7 @@ class element {
364364 * Get the value associated with the given JSON pointer.
365365 *
366366 * dom::parser parser;
367- * element doc = parser.parse(R"({ "foo": { "a": [ 10, 20, 30 ] }})");
367+ * element doc = parser.parse(R"({ "foo": { "a": [ 10, 20, 30 ] }})"_padded );
368368 * doc.at("/foo/a/1") == 20
369369 * doc.at("/")["foo"]["a"].at(1) == 20
370370 * doc.at("")["foo"]["a"].at(1) == 20
@@ -391,8 +391,8 @@ class element {
391391 * The key will be matched against **unescaped** JSON:
392392 *
393393 * dom::parser parser;
394- * parser.parse(R"({ "a\n": 1 })")["a\n"].get<uint64_t>().first == 1
395- * parser.parse(R"({ "a\n": 1 })")["a\\n"].get<uint64_t>().error() == NO_SUCH_FIELD
394+ * parser.parse(R"({ "a\n": 1 })"_padded )["a\n"].get<uint64_t>().first == 1
395+ * parser.parse(R"({ "a\n": 1 })"_padded )["a\\n"].get<uint64_t>().error() == NO_SUCH_FIELD
396396 *
397397 * @return The value associated with this field, or:
398398 * - NO_SUCH_FIELD if the field does not exist in the object
0 commit comments