From 08f9a9305c62789f72d8c375ccae5c6eb7b95bd6 Mon Sep 17 00:00:00 2001 From: steven-omaha <35634100+steven-omaha@users.noreply.github.com> Date: Fri, 28 Apr 2023 14:07:37 +0200 Subject: [PATCH] docs(config): update `Config::load` --- crates/pacdef_core/src/config.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/pacdef_core/src/config.rs b/crates/pacdef_core/src/config.rs index d31b314..7237af1 100644 --- a/crates/pacdef_core/src/config.rs +++ b/crates/pacdef_core/src/config.rs @@ -19,11 +19,12 @@ pub struct Config { } impl Config { - /// Load the config from the associated file. If the file does not exist, create a default config. + /// Load the config from the associated file. /// /// # Errors /// - /// This function will return an error if the config file exists but cannot be read, its contents are not UTF-8, or the file is malformed. + /// This function will return an error if the config file exists but cannot be read, its + /// contents are not UTF-8, or the file is malformed. pub fn load(config_file: &Path) -> Result { let from_file = read_to_string(config_file);