Fix Scala type of parameters examples

All 3 code examples were the same, I'm guessing this was how they were supposed to be?