diff --git a/README.md b/README.md index 3888de8..5ca6bd0 100644 --- a/README.md +++ b/README.md @@ -1035,7 +1035,7 @@ Then add some methods. First a new method. Note: `new` isn't a keyword in Rust - ```rust fn new() -> Self { // Can also write City Self { - name: "".to_string(), + name: String::new(), population: 0 } }