Skip to content

Commit d52548f

Browse files
committed
rename days
1 parent 2e51c61 commit d52548f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/types/duration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ impl Duration {
5656
}
5757

5858
/// Creates a new [`Duration`] that represents a given number of days.
59-
pub fn days(days: u32) -> Self {
59+
pub fn from_days(days: u32) -> Self {
6060
Self(days * SECONDS_PER_DAY)
6161
}
6262
}

0 commit comments

Comments
 (0)