diff --git a/desktop/crates/cloudreve-sync/src/drive/placeholder.rs b/desktop/crates/cloudreve-sync/src/drive/placeholder.rs index 567878ee..f23239c6 100644 --- a/desktop/crates/cloudreve-sync/src/drive/placeholder.rs +++ b/desktop/crates/cloudreve-sync/src/drive/placeholder.rs @@ -298,14 +298,12 @@ impl CrPlaceholder { /// /// # Example /// - /// ```no_run - /// use std::path::Path; - /// + /// ```ignore /// // Set error state on a file - /// update_sync_error_state(Path::new("C:\\MyFolder\\file.txt"), true)?; + /// placeholder.update_sync_error_state(true)?; /// /// // Clear error state - /// update_sync_error_state(Path::new("C:\\MyFolder\\file.txt"), false)?; + /// placeholder.update_sync_error_state(false)?; /// ``` pub fn update_sync_error_state(&self, set_error: bool) -> Result<()> { if !self.local_file_info.is_placeholder() {