Skip to content

Commit 708bd6c

Browse files
author
Dean Wampler
committed
Renamed a variable so the whole file can run as a script
1 parent 2c0c07e commit 708bd6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/script/scala/progscala3/IndentationSyntax.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ def multiline(s: String): String =
8585
end multiline // for constructors, use their name: this
8686

8787
// Multiline value definition
88-
val foo =
88+
val hi =
8989
println("Hi World!")
9090
42
91-
end foo // val doesn't work in this case, but...
91+
end hi // val doesn't work in this case, but...
9292

9393
val (foo, bar) =
9494
"foo" -> "bar"

0 commit comments

Comments
 (0)