Multiple Parameters

We’re not limited to just accepting a single numeric parameter. Functions can take multiple parameters, and they can take other types like strings. Just like when we call functions or macros, we separate multiple parameters with commas. As a reminder, the type we have for string literals is &str. Let’s see an example of this in practice:

Get hands-on with 1200+ tech skills courses.