From 783bdd16eb9a3e79b1d54813a320ec85083694a7 Mon Sep 17 00:00:00 2001 From: "Alan D. Salewski" Date: Tue, 17 Nov 2020 11:42:53 -0500 Subject: [PATCH] docs: add missing example for Rotation::MINUTELY (#1110) --- 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() {