Skip to content

Commit

Permalink
add missing indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubSchwenkbeck authored Jan 13, 2025
1 parent 771c23d commit cd7cd3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/stdlib/exception/out_of_bounds.effekt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ def main() = {
val str = "Hallo"

def charOrOutOfBounds { p: => Char / Exception[OutOfBounds] }: Unit = {
with on[OutOfBounds].default { println("Index Out of Bound") }
println(p().show)
with on[OutOfBounds].default { println("Index Out of Bound") }
println(p().show)
}

charOrOutOfBounds { str.charAt(10) }
Expand Down

0 comments on commit cd7cd3c

Please sign in to comment.