From 80bcce1a34b88e92e32d48f50e7651abf4d894cb Mon Sep 17 00:00:00 2001 From: "Alan D. Salewski" Date: Mon, 16 Nov 2020 19:50:25 -0500 Subject: [PATCH] appender(docs): add missing entry for Rotation::MINUTELY The list introduced by: "To use a Rotation, pick one of the following options:" had en entry for all variations of Rotation except for Rotation::MINUTELY. This changeset completes this list, with the doc test structured the same as the others in the list. --- tracing-appender/src/rolling.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tracing-appender/src/rolling.rs b/tracing-appender/src/rolling.rs index 22d2ede1fe..ba80eea59a 100644 --- a/tracing-appender/src/rolling.rs +++ b/tracing-appender/src/rolling.rs @@ -245,6 +245,14 @@ pub fn never(directory: impl AsRef, file_name: impl AsRef) -> Rollin /// /// To use a `Rotation`, pick one of the following options: /// +/// ### Minutely Rotation +/// ```rust +/// # fn docs() { +/// use tracing_appender::rolling::Rotation; +/// let rotation = tracing_appender::rolling::Rotation::MINUTELY; +/// # } +/// ``` +/// /// ### Hourly Rotation /// ```rust /// # fn docs() {