From 5849412610ece35bb41be28166325f594159c2f0 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Mon, 15 Nov 2021 23:48:57 -0500 Subject: [PATCH] Fix typo in Simple Swift Promises --- site/posts/2020-02-18-simple-swift-promises.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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