Skip to content

Commit e9c6ab0

Browse files
ianlintnerjulienrf
authored andcommittedMay 30, 2023
Update 2023-05-30-scala-3.3.0-released.md
Fixed variable mismatch See https://scastie.scala-lang.org/PQCOjE0xTp6o1a3t2fm0cg
1 parent 6b19a35 commit e9c6ab0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎blog/_posts/2023-05-30-scala-3.3.0-released.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Two new methods were added to the standard library: `boundary` and `break`. They
8181
```Scala
8282
import util.boundary, boundary.break
8383

84-
def sumOfRoots(number: List[Double]): Option[Double] = boundary:
84+
def sumOfRoots(numbers: List[Double]): Option[Double] = boundary:
8585
val roots = numbers.map: n =>
8686
println(s" * calculating square root for $n*")
8787
if n >= 0 then Math.sqrt(n) else break(None)

0 commit comments

Comments
 (0)
Please sign in to comment.