A Better Person
We'll cover the following...
Earlier, we declared a Person struct as:
Press + to interact
struct Person {name: &'static str,age: i32,}
This is incredibly limiting. Only string literals can produce a &str with a 'static lifetime. Therefore, this Person can only store names that are ...
Ask