From 927f58c47372a6c2f1f318c45be479ecc4863fb0 Mon Sep 17 00:00:00 2001 From: davidrobert99 Date: Tue, 26 Apr 2022 10:44:00 +0100 Subject: [PATCH] update shopping mall rust --- subjects/shopping_mall/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subjects/shopping_mall/README.md b/subjects/shopping_mall/README.md index 587a82d76..d21402fbe 100644 --- a/subjects/shopping_mall/README.md +++ b/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); } }