From 00600fdf5573326c623fccc4b0a373fde92d4954 Mon Sep 17 00:00:00 2001 From: OGordoo Date: Tue, 12 Oct 2021 11:24:27 +0100 Subject: [PATCH] middle_day exercise: missing case --- subjects/middle_day/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subjects/middle_day/README.md b/subjects/middle_day/README.md index 1c786852..ca9f61ee 100644 --- a/subjects/middle_day/README.md +++ b/subjects/middle_day/README.md @@ -5,6 +5,8 @@ Use the [`chrono crate`](https://docs.rs/chrono/0.4.19/chrono/index.html) to create a **function** called `middle_day`, which returns, wrapped in an Option, the Weekday of the middle day of the year passed as an argument. `chrono::Weekday` has to be refered as `wd`. +As an even number of days doesn't have a middle day, when the year passed as an argument has an even number of days, the program should return `None`. + ### Expected Function #### For this exercise the signature of the function has to be found out.