diff --git a/README.md b/README.md index c9a5785..8487913 100644 --- a/README.md +++ b/README.md @@ -72,8 +72,8 @@ impl PersonTrait for Person { &self.emit } /// Get the name of the Person - fn get_name(&self) -> String { - self.name.clone() + fn get_name(&self) -> &str { + &self.name } /// Set the name of the Person fn set_name(&mut self, value: String) {