diff --git a/site/posts/2020-02-18-simple-swift-promises.md b/site/posts/2020-02-18-simple-swift-promises.md index b10267b..6340e36 100644 --- a/site/posts/2020-02-18-simple-swift-promises.md +++ b/site/posts/2020-02-18-simple-swift-promises.md @@ -178,7 +178,7 @@ public extension Promise { addHandler { (parentResult) in let newPromise = mapper(parentResult) newPromise.addHandler(next.resolve) - newPromise.addHandler(next.reject) + newPromise.addCatcher(next.reject) } addCatcher(next.reject) return next