creative-scala
creative-scala copied to clipboard
Confusing example of substitution in methods
Should this example (from creative-scala/src/pages/methods/semantics.md):
{ val x = 2 square(2) }
have x as an argument to the square method:
{
val x = 2
square(x)
}
?
Yes, that looks like an error.