We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Debugger.swift
1 parent c39f9e2 commit 55bfb6bCopy full SHA for 55bfb6b
Sources/WasmKit/Execution/Debugger.swift
@@ -3,7 +3,8 @@
3
extension [Int] {
4
/// Uses binary search to find an element in `self` that's next closest to a given value.
5
/// - Parameter value: the array element to search for or to use as a baseline when searching.
6
- /// - Returns: array element `result`, where `result - value` is the smallest possible, and `result > value`.
+ /// - Returns: array element `result`, where `result - value` is the smallest possible, while
7
+ /// `result > value` also holds.
8
fileprivate func binarySearch(nextClosestTo value: Int) -> Int? {
9
switch self.count {
10
case 0:
0 commit comments