diff --git a/src/context.rs b/src/context.rs index 61a7251..0e90a19 100644 --- a/src/context.rs +++ b/src/context.rs @@ -179,11 +179,9 @@ impl Context { /// continuously repeat the plan at the specified period, stopping /// only once there are no other plans scheduled. /// - /// Returns an `Id` for the newly-added plan that can be used to cancel it - /// if needed. /// # Panics /// - /// Panics if time is negative, infinite, or NaN. + /// Panics if report period is negative, infinite, or NaN. pub fn add_periodic_plan_with_phase( &mut self, period: f64, diff --git a/src/report.rs b/src/report.rs index 350f15c..15d4c00 100644 --- a/src/report.rs +++ b/src/report.rs @@ -40,7 +40,7 @@ impl ConfigReportOptions { self.directory = directory; self } - /// Sets the overwrite option + /// Sets whether to overwrite existing reports of the same name if they exist pub fn overwrite(&mut self, overwrite: bool) -> &mut ConfigReportOptions { self.overwrite = overwrite; self @@ -136,7 +136,7 @@ impl ContextReportExt for Context { if data_container.config.overwrite { File::create(&path)? } else { - println!("File already exists: {}. Please rerun setting overwrite to true in the file config.", path.display()); + println!("File already exists: {}. Please set `overwrite` to true in the file configuration and rerun.", path.display()); return Err(IxaError::IoError(e)); } }