We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e51c61 commit d52548fCopy full SHA for d52548f
1 file changed
src/types/duration.rs
@@ -56,7 +56,7 @@ impl Duration {
56
}
57
58
/// Creates a new [`Duration`] that represents a given number of days.
59
- pub fn days(days: u32) -> Self {
+ pub fn from_days(days: u32) -> Self {
60
Self(days * SECONDS_PER_DAY)
61
62
0 commit comments