From b8d723844b1a584d9b367e03e4765892318d6bc1 Mon Sep 17 00:00:00 2001 From: liuzicheng1987 Date: Tue, 3 Oct 2023 17:51:54 +0200 Subject: [PATCH] Put children in quotation marks --- docs/optional_fields.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/optional_fields.md b/docs/optional_fields.md index 23440fd8..91c32040 100644 --- a/docs/optional_fields.md +++ b/docs/optional_fields.md @@ -9,7 +9,7 @@ we generated a JSON string like this: Likewise, if we read the JSON string and the field "children" is missing, that will result in a runtime error. -But Bart doesn't have any children. After all, he's only 10 years old. To indicate to the library that the field children is optional, +But Bart doesn't have any children. After all, he's only 10 years old. To indicate to the library that the field "children" is optional, we can use either `std::optional`, `std::shared_ptr` or `std::unique_ptr` (TODO: unique_ptr currently unsupported). If `std::optional` is `std::nullopt` or any of the smart pointers is a `nullptr`,