docs(config): update Config::load

This commit is contained in:
steven-omaha
2023-04-28 14:07:37 +02:00
parent b70da6f7f2
commit 08f9a9305c
+3 -2
View File
@@ -19,11 +19,12 @@ pub struct Config {
} }
impl 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 /// # 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<Self> { pub fn load(config_file: &Path) -> Result<Self> {
let from_file = read_to_string(config_file); let from_file = read_to_string(config_file);