From 5937bac8c30242f1ec7d69ea37ca95352d90e52a Mon Sep 17 00:00:00 2001 From: liuzicheng1987 Date: Wed, 15 Nov 2023 21:13:53 +0100 Subject: [PATCH] Update anonymous_fields.md --- docs/anonymous_fields.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/anonymous_fields.md b/docs/anonymous_fields.md index 706caf6d..4e3a3e76 100644 --- a/docs/anonymous_fields.md +++ b/docs/anonymous_fields.md @@ -16,5 +16,7 @@ This can be fully serialized and deserialized using `rfl::json::read` and `rfl:: However, there are a two things you have to keep in mind: -1) If you annotate *some* of the fields using either `rfl::Field` or `rfl::Flatten`, then you must annotate *all* of them using one of these two. -2) If you are combining structs using `rfl::Flatten`, then all fields in all structs must be annotated using either using either `rfl::Field` or `rfl::Flatten`. +1) If you annotate *some* of the fields using either `rfl::Field`, then you must annotate *all* of them using one of these two. +2) If you are combining structs using `rfl::Flatten`, then they structs combined like this must either be annotated or not. + +