We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b19a35 commit e9c6ab0Copy full SHA for e9c6ab0
blog/_posts/2023-05-30-scala-3.3.0-released.md
@@ -81,7 +81,7 @@ Two new methods were added to the standard library: `boundary` and `break`. They
81
```Scala
82
import util.boundary, boundary.break
83
84
-def sumOfRoots(number: List[Double]): Option[Double] = boundary:
+def sumOfRoots(numbers: List[Double]): Option[Double] = boundary:
85
val roots = numbers.map: n =>
86
println(s" * calculating square root for $n*")
87
if n >= 0 then Math.sqrt(n) else break(None)
0 commit comments