Skip to content

Commit ab8f080

Browse files
authored
Refine doc comments wording
1 parent e81f68e commit ab8f080

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/WasmKit/Execution/Debugger.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
}
2929

3030
extension Instance {
31-
/// Return an address of WasmKit's iseq bytecode instruction that matches a given Wasm instruction address.
31+
/// Computes an address of WasmKit's iseq bytecode instruction that matches a given Wasm instruction address.
3232
/// - Parameter address: the Wasm instruction to find a mapping for.
3333
/// - Returns: A tuple with an address of found iseq instruction and the original Wasm instruction or next
3434
/// closest match if no direct match was found.
@@ -162,9 +162,9 @@
162162
iseq.pointee = oldCodeSlot
163163
}
164164

165-
/// If the module instantiated by the debugger is stopped at a breakpoint, the breakpoint is disabled
165+
/// Resumes the module instantiated by the debugger stopped at a breakpoint. The breakpoint is disabled
166166
/// and execution is resumed until the next breakpoint is triggered or all remaining instructions are
167-
/// executed. If the module is not stopped at a breakpoint, this function retusn immediately.
167+
/// executed. If the module is not stopped at a breakpoint, this function returns immediately.
168168
/// - Returns: `[Value]` result of `entrypointFunction` if current instance ran to completion,
169169
/// `nil` if it stopped at a breakpoint.
170170
package mutating func run() throws -> [Value]? {

0 commit comments

Comments
 (0)