Skip to content

Commit 20df1fc

Browse files
committed
spelling fix
1 parent d22292e commit 20df1fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/JavaScriptKit/BasicObjects/JSPromise.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public final class JSPromise: JSBridgedClass {
6666
self.init(unsafelyWrapping: Self.constructor.reject!(reason).object!)
6767
}
6868

69-
/// Schedules the `success` closure to be invoked on sucessful completion of `self`.
69+
/// Schedules the `success` closure to be invoked on successful completion of `self`.
7070
@discardableResult
7171
public func then(success: @escaping (JSValue) -> ConvertibleToJSValue) -> JSPromise {
7272
let closure = JSOneshotClosure {
@@ -75,7 +75,7 @@ public final class JSPromise: JSBridgedClass {
7575
return JSPromise(unsafelyWrapping: jsObject.then!(closure).object!)
7676
}
7777

78-
/// Schedules the `success` closure to be invoked on sucessful completion of `self`.
78+
/// Schedules the `success` closure to be invoked on successful completion of `self`.
7979
@discardableResult
8080
public func then(success: @escaping (JSValue) -> ConvertibleToJSValue,
8181
failure: @escaping (JSValue) -> ConvertibleToJSValue) -> JSPromise {

0 commit comments

Comments
 (0)