From 0310fc4bce4b24e7d0bb3202419251c7fe632f87 Mon Sep 17 00:00:00 2001 From: OGordoo Date: Thu, 18 Feb 2021 14:22:29 +0000 Subject: [PATCH] fixes based on reviews --- subjects/expected_variable/README.md | 12 ++++++------ subjects/mobs/README.md | 4 +++- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/subjects/expected_variable/README.md b/subjects/expected_variable/README.md index ee77d34c..2043e4af 100644 --- a/subjects/expected_variable/README.md +++ b/subjects/expected_variable/README.md @@ -36,8 +36,8 @@ fn main() { expected_variable("soClose", "So_Close").unwrap() ); println!( - "{} close to it", - expected_variable("something", "something_completely_different").unwrap() + "{:?}", + expected_variable("something", "something_completely_different") ); println!( "{} close to it", @@ -50,9 +50,9 @@ And its output: ```sh $ cargo run -100% -88% -Fail -73% +100% close to ir +88% close to it +None +73% close to it $ ``` diff --git a/subjects/mobs/README.md b/subjects/mobs/README.md index cbcdfd76..a9b3f66e 100644 --- a/subjects/mobs/README.md +++ b/subjects/mobs/README.md @@ -2,7 +2,7 @@ ### Instructions -Create a module `mob`, in which has to be present: +Create a module `mobs`, in which has to be present: - a `Mob` structure which consists of: - a String `name` @@ -43,6 +43,8 @@ Create also two submodules of mob: - the Member struct should implement a function `get_promotion` which will change the member role. If a member is an Associate, it will get promoted to Soldier; a Soldier is promoted to a Caporegime and a Caporegime is promoted to Underboss - a function `new` which return a Member on receiving a name(&str), a role (Role) and an age (u8) +The submodules should be created inside a folder called `mobs`. We advise you to create two files one to each submodule, but it is up to you. + You must include `#[derive(Debug, CLone, PartialEq)]` on top of every struct and the enum. ### Expected Function