Browse Source

fixes based on reviews

pull/725/head
OGordoo 4 years ago
parent
commit
0310fc4bce
  1. 12
      subjects/expected_variable/README.md
  2. 4
      subjects/mobs/README.md

12
subjects/expected_variable/README.md

@ -36,8 +36,8 @@ fn main() {
expected_variable("soClose", "So_Close").unwrap() expected_variable("soClose", "So_Close").unwrap()
); );
println!( println!(
"{} close to it", "{:?}",
expected_variable("something", "something_completely_different").unwrap() expected_variable("something", "something_completely_different")
); );
println!( println!(
"{} close to it", "{} close to it",
@ -50,9 +50,9 @@ And its output:
```sh ```sh
$ cargo run $ cargo run
100% 100% close to ir
88% 88% close to it
Fail None
73% 73% close to it
$ $
``` ```

4
subjects/mobs/README.md

@ -2,7 +2,7 @@
### Instructions ### 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 `Mob` structure which consists of:
- a String `name` - 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 - 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) - 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. You must include `#[derive(Debug, CLone, PartialEq)]` on top of every struct and the enum.
### Expected Function ### Expected Function

Loading…
Cancel
Save