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)?;