diff --git a/src/lib.rs b/src/lib.rs index 79c098579d..f7638bc6ac 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -532,7 +532,7 @@ pub use offset::LocalResult; #[doc(inline)] pub use offset::{FixedOffset, Offset, TimeZone, Utc}; -mod round; +pub mod round; pub use round::{DurationRound, RoundingError, SubsecRound}; mod weekday; diff --git a/src/round.rs b/src/round.rs index 795ffb04cd..4de1de60c8 100644 --- a/src/round.rs +++ b/src/round.rs @@ -1,6 +1,8 @@ // This is a part of Chrono. // See README.md and LICENSE.txt for details. +//! Functionality for rounding or truncating a `DateTime` by a `Duration`. + use crate::datetime::DateTime; use crate::duration::Duration; use crate::NaiveDateTime;