Browse Source

update shopping mall rust

DEV-3198-new-go-exercise-get-digit-len
davidrobert99 2 years ago
parent
commit
927f58c473
  1. 4
      subjects/shopping_mall/README.md

4
subjects/shopping_mall/README.md

@ -41,12 +41,12 @@ impl Mall {
}
#[allow(dead_code)]
pub fn hire_guards(&mut self, guard: guard::Guard) {
pub fn hire_guard(&mut self, guard: guard::Guard) {
self.guards.push(guard);
}
#[allow(dead_code)]
pub fn fire_guards(&mut self, name: String) {
pub fn fire_guard(&mut self, name: String) {
self.guards.retain(|x| x.name != name);
}
}

Loading…
Cancel
Save