Borrowing a String
We'll cover the following...
We'll cover the following...
A better solution to the above problem is to modify greet to take a reference.
Exercise Get rid of the .clone() method call, and modify greet to accept a &String parameter. Then fix the calls to the greet function in main.
That’s all well and good, but let’s make our example a little more involved. Now we want to greet a few different people:
Both michael and miriam ...