Skip to content

Commit 68afa5c

Browse files
author
Dean Wampler
committed
Comment change
1 parent eabdbf4 commit 68afa5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/script/scala/progscala3/BracesSyntax.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// src/script/scala/progscala3/BracesSyntax.scala
22

3-
// For completeness, Scala 2 imports. Still allowed in Scala 3.0:
3+
// For completeness, Scala 2 imports. Still allowed in Scala 3.0, but not
4+
// with the -source:future flag we use in SBT:
45
import scala.concurrent._
56
import java.util.{Queue => JQueue}
67
import java.util.{HashMap => _, _}
@@ -58,7 +59,6 @@ try { // Can omit {} if nothing else is done with source...
5859
// do something with it
5960
} catch { // However, the {} are required for catch clauses
6061
case NonFatal(ex) => println(ex)
61-
}
6262
} finally { // Can omit {} for both finally and if here.
6363
if (source != None) {
6464
source.get.close

0 commit comments

Comments
 (0)