DanielaSfregola/get-programming-with-scala

welcome method not interpolating string correctly

kevin-orr opened this issue · 2 comments

Hiya Daniela,

In listing §7.5 the welcome method for Robot is missing the interpolation operator s"..", so it should look like:

def welcome(n: String) = s"Welcome $n! My name is $name"

rather than:

def welcome(n: String) = "Welcome $n! My name is $name"

Thanks @kevin-orr! LGTM
And sorry it took so long to notice this issue - notifications on new prs/issues were off 🤦