This commit is contained in:
KodrAus 2024-03-20 08:13:24 +10:00
parent 6c2dade605
commit adb7b53e29

View File

@ -40,7 +40,7 @@
//! [`debug!`]: ./macro.debug.html //! [`debug!`]: ./macro.debug.html
//! [`trace!`]: ./macro.trace.html //! [`trace!`]: ./macro.trace.html
//! [`println!`]: https://doc.rust-lang.org/stable/std/macro.println.html //! [`println!`]: https://doc.rust-lang.org/stable/std/macro.println.html
//! //!
//! Avoid writing expressions with side-effects in log statements. They may not be evaluated. //! Avoid writing expressions with side-effects in log statements. They may not be evaluated.
//! //!
//! ## In libraries //! ## In libraries
@ -1151,9 +1151,9 @@ pub trait Log: Sync + Send {
fn log(&self, record: &Record); fn log(&self, record: &Record);
/// Flushes any buffered records. /// Flushes any buffered records.
/// ///
/// # For implementors /// # For implementors
/// ///
/// This method isn't called automatically by the `log!` macros. /// This method isn't called automatically by the `log!` macros.
/// It can be called manually on shut-down to ensure any in-flight records are flushed. /// It can be called manually on shut-down to ensure any in-flight records are flushed.
fn flush(&self); fn flush(&self);