From 92befee220cfc985c9734aa540528e243e2419d7 Mon Sep 17 00:00:00 2001 From: davhojt Date: Wed, 15 Jun 2022 00:38:40 +0300 Subject: [PATCH] docs(highest): correct grammar --- subjects/highest/README.md | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/subjects/highest/README.md b/subjects/highest/README.md index b4b71ba4..ed1148a3 100644 --- a/subjects/highest/README.md +++ b/subjects/highest/README.md @@ -2,19 +2,14 @@ ### Instructions -In this exercise a `Numbers` struct will be given. +In this exercise, a `Numbers` struct will be given. -These methods have to be written: - -- `new` create a new instance of Number. -- `List` that returns an `array` with every number in the struct. -- `Latest` that returns an `Option` with the last added number. -- `Highest` that return an `Option` with the highest number from the list. -- `Highest_Three` that returns a `Vec` with the three highest numbers. - -### Notions - -- [Trait iterator](https://doc.rust-lang.org/std/iter/trait.Iterator.html) +These methods have to be written for it: +- `new`: create a new instance of `Number`. +- `List`: which returns an `array` with every number in the struct. +- `Latest`: which returns an `Option` with the last added number. +- `Highest`: which returns an `Option` with the highest number from the list. +- `Highest_Three`: which returns a `Vec` with the three highest numbers. ### Expected functions @@ -62,3 +57,7 @@ Some(70) [500, 70, 30] $ ``` + +### Notions + +- [Trait iterator](https://doc.rust-lang.org/std/iter/trait.Iterator.html)