Closed frosforever closed 6 years ago
cmd here is a string so cmd.mkString(" ") would take string and treat it like a List[Char] and insert spaces between each one. So hello world becomes h e l l o w o r l d.
cmd
cmd.mkString(" ")
List[Char]
hello world
h e l l o w o r l d
Instead we can just grab the string and insert it into the error message.
Good catch - thank you for the contribution!
cmd
here is a string socmd.mkString(" ")
would take string and treat it like aList[Char]
and insert spaces between each one. Sohello world
becomesh e l l o w o r l d
.Instead we can just grab the string and insert it into the error message.