Skip to content

Commit 3796d6d

Browse files
committed
Try to fix BinarySearch.scala
1 parent f9ed5e9 commit 3796d6d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/scala/BinarySearch.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ def binarySearch(data: Seq[Int], target: Int): Option[Int] = {
1919

2020
object Main extends App {
2121
val data: Seq[Int] = Seq(0, 1, 3, 5, 6, 7, 8, 9, 10, 11, 12)
22-
val value: Int = 11
23-
println(s"Value '$value' found in position '${binarySearch(data, value).get}'")
22+
val value: Int = 11
23+
println(
24+
s"Value '$value' found in position '${binarySearch(data, value).get}'"
25+
)
2426
}

0 commit comments

Comments
 (0)