From ce0a2d79f1eae04574b85d8e74f359812309e216 Mon Sep 17 00:00:00 2001 From: hhamana Date: Mon, 28 Oct 2019 18:42:02 +0900 Subject: [PATCH] fix doctest --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 7908a3c8b3..77e053d15f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -907,7 +907,7 @@ mod weekday_serde { /// use num_traits::FromPrimitive; /// let date = Utc.ymd(2019, 10, 28).and_hms(9, 10, 11); /// // `2019-10-28T09:10:11Z` -/// let month = Month::from_u32((date.month()); +/// let month = Month::from_u32(date.month()); /// assert_eq!(month, Some(Month::October)) /// ``` /// Or from a Month to an integer usable by dates