Skip to content

Commit

Permalink
docs: add missing example for Rotation::MINUTELY (#1110)
Browse files Browse the repository at this point in the history
  • Loading branch information
salewski authored Nov 17, 2020
1 parent 0d661b6 commit 783bdd1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tracing-appender/src/rolling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,14 @@ pub fn never(directory: impl AsRef<Path>, file_name: impl AsRef<Path>) -> 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() {
Expand Down

0 comments on commit 783bdd1

Please sign in to comment.