Exercises
We'll cover the following
Exercise 1
The is_five
function below has a bug. You can fix it by either adding in a borrow (&
) or deref (*
). Try fixing it both ways.
The is_five
function below has a bug. You can fix it by either adding in a borrow (&
) or deref (*
). Try fixing it both ways.