From 17ccbc06d495a0a971afe233c34a4c5e2ae30878 Mon Sep 17 00:00:00 2001 From: davhojt Date: Fri, 27 May 2022 22:24:26 +0300 Subject: [PATCH] docs(middle_day): correct grammar --- subjects/middle_day/README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/subjects/middle_day/README.md b/subjects/middle_day/README.md index ca9f61ee..1ef0c7fd 100644 --- a/subjects/middle_day/README.md +++ b/subjects/middle_day/README.md @@ -2,14 +2,13 @@ ### Instructions -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`. +Use the [`chrono` crate](https://docs.rs/chrono/0.4.19/chrono/index.html) to create a **function** named `middle_day`. It accepts a year, and returns the weekday of the middle day of that year, wrapped in an `Option`. `chrono::Weekday` has to be referred to 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`. +Years with an even number of days do not have a middle day, and should return `None`. ### Expected Function -#### For this exercise the signature of the function has to be found out. +> You'll need to work out the function signature for yourself. ### Usage