From 841f523be56908c4de7e833d98f7ca090f2b79b6 Mon Sep 17 00:00:00 2001 From: Yuru Shao Date: Tue, 18 Aug 2020 14:25:34 -0700 Subject: [PATCH] Update README.md Fix typos --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 377aa77..7fa3aa6 100644 --- a/README.md +++ b/README.md @@ -173,8 +173,8 @@ PINFuture fibonacciResultFuture = [PINFuture executor:[P In order to achieve type safety for an operation like `map` that converts from one type of value to another type, we have to jump through some hoops because of Objective-C's rudimentary support for generics. `map` and `flatMap` are class methods on the class `PINFutureMap`. The `PINFutureMap` class has two type parameters: `FromType` and `ToType`. #### Error handling with transformations -- `map` and `flatMap` only preform a transformation is the source Future is *fulfilled*. If the source Future is *rejected*, then the original error is simply passed through to the return value. -- `mapError` and `flatMapError` only preform a transformation is the source Future is *rejected*. If the source Future is *fulfilled*, then the original value is simply passed through to the return value. +- `map` and `flatMap` only preform a transformation if the source Future is *fulfilled*. If the source Future is *rejected*, then the original error is simply passed through to the return value. +- `mapError` and `flatMapError` only preform a transformation if the source Future is *rejected*. If the source Future is *fulfilled*, then the original value is simply passed through to the return value. #### `map` ```objc