diff --git a/crates/core/src/data_cache.rs b/crates/core/src/data_cache.rs index 3eb54e03..9f15b092 100644 --- a/crates/core/src/data_cache.rs +++ b/crates/core/src/data_cache.rs @@ -330,7 +330,7 @@ impl Data { .wrap_err("While serializing .luminol/commands")?; filesystem .write(".luminol/commands", command_db) - .wrap_err("While writing .luminol/config")?; + .wrap_err("While writing .luminol/commands")?; // even though Ini uses fmt::write internally, it provides no easy way to write to a string. // so we need to open a file instead diff --git a/crates/filesystem/src/lib.rs b/crates/filesystem/src/lib.rs index 410cdb7c..f5a11128 100644 --- a/crates/filesystem/src/lib.rs +++ b/crates/filesystem/src/lib.rs @@ -247,7 +247,8 @@ pub trait FileSystem: Send + Sync { } /// Corresponds to [`std::fs::write()`]. - /// Will open a file at the path, create it if it exists (and truncate it) and then write the provided bytes. + /// Will open a file at the path, create it if it does not exist (and truncate it) + /// and then write the provided bytes. fn write(&self, path: impl AsRef, data: impl AsRef<[u8]>) -> Result<()> { use std::io::Write;