Browse Source

fixes based on reviews

content-update
OGordoo 3 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()
);
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
$
```

4
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

Loading…
Cancel
Save