From 2aa202d05c6fec149af92f232d34b1383df2554d Mon Sep 17 00:00:00 2001 From: "Elf M. Sternberg" Date: Fri, 24 Mar 2023 07:54:07 -0700 Subject: [PATCH] Fixed shortcoming in docs. Added a comment in the docs about how to make Config not error out if a configuration file isn't present. --- docs/04-forms-and-serializers.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/04-forms-and-serializers.md b/docs/04-forms-and-serializers.md index 080d29b..356403b 100644 --- a/docs/04-forms-and-serializers.md +++ b/docs/04-forms-and-serializers.md @@ -273,7 +273,8 @@ impl Default for Settings { ``` Again, exceeding the book's parameters, I'm going to say that if the file is -missing the default parameters should hold: +missing the default parameters should hold, so the presence of a valid +configuration isn't a show-stopper and should not be required. ``` rust pub(crate) fn get_configuration() -> Result {