--- a/buggy.py
+++ b/buggy.py
@@ -1,7 +1,7 @@
 def binary_search(arr: list[int], target: int) -> int:
     """Return the index of target in sorted arr, or -1 if not found."""
-    lo, hi = 0, len(arr)  # Bug: hi should be len(arr) - 1
+    lo, hi = 0, len(arr) - 1
     while lo <= hi:
         mid = (lo + hi) // 2
         if arr[mid] == target:
