From f640e49571de0417c39a621a90d0ae94be9e4f1b Mon Sep 17 00:00:00 2001 From: Aaron Weiss Date: Mon, 18 Mar 2024 16:06:39 -0700 Subject: [PATCH] fix mistake in Config::load and Config::save docs (fixes #256) --- src/client/data/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/data/config.rs b/src/client/data/config.rs index add9670..efaed3a 100644 --- a/src/client/data/config.rs +++ b/src/client/data/config.rs @@ -242,7 +242,7 @@ impl Config { /// Loads a configuration from the desired path. This will use the file extension to detect /// which format to parse the file as (json, toml, or yaml). Using each format requires having - /// its respective crate feature enabled. Only json is available by default. + /// its respective crate feature enabled. Only toml is available by default. pub fn load>(path: P) -> Result { let mut file = File::open(&path)?; let mut data = String::new(); @@ -317,7 +317,7 @@ impl Config { /// Saves a configuration to the desired path. This will use the file extension to detect /// which format to parse the file as (json, toml, or yaml). Using each format requires having - /// its respective crate feature enabled. Only json is available by default. + /// its respective crate feature enabled. Only toml is available by default. pub fn save>(&mut self, path: P) -> Result<()> { let _ = self.path.take(); let mut file = File::create(&path)?;