From 575d36307e12f94153abddc613a6579bbf4d2015 Mon Sep 17 00:00:00 2001 From: liuzicheng1987 Date: Sun, 8 Oct 2023 16:27:33 +0200 Subject: [PATCH] Update optional_fields.md, fixed typo --- docs/optional_fields.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/optional_fields.md b/docs/optional_fields.md index fd9d4064..19fb4ce8 100644 --- a/docs/optional_fields.md +++ b/docs/optional_fields.md @@ -13,8 +13,7 @@ But Bart doesn't have any children. After all, he's only 10 years old. To indica we can use either `std::optional`, `std::shared_ptr` or `std::unique_ptr`. If `std::optional` is `std::nullopt` or any of the smart pointers is a `nullptr`, -then the field will not be written to the JSON string. Likewise, it is not required -when you read the JSON string, the fields will not be required. +then the field will not be written to the JSON string. Likewise, when you read the JSON string, the fields will not be required. So this is how we could rewrite the previous example: