Browse Source

Merge pull request #1064 from 01-edu/changing-from-securitysecurities-to-01-911

update shopping mall rust
DEV-3198-new-go-exercise-get-digit-len
David Mata 2 years ago committed by GitHub
parent
commit
e299c0dc3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      subjects/shopping_mall/README.md

4
subjects/shopping_mall/README.md

@ -41,12 +41,12 @@ impl Mall {
} }
#[allow(dead_code)] #[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); self.guards.push(guard);
} }
#[allow(dead_code)] #[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); self.guards.retain(|x| x.name != name);
} }
} }

Loading…
Cancel
Save