diff options
author | Muxi Yan <mxyan@google.com> | 2017-03-27 15:14:23 -0700 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2017-03-27 15:14:23 -0700 |
commit | 29a912df09c9d7edf5b6efdb4f45c9b7b428fc4d (patch) | |
tree | f039011d9156a100a0179c702be76fc9977684d6 | |
parent | c2e53b5af4830c14d5cda72bba20df2855789300 (diff) |
Add more comments
-rw-r--r-- | src/objective-c/RxLibrary/GRXImmediateSingleWriter.m | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/objective-c/RxLibrary/GRXImmediateSingleWriter.m b/src/objective-c/RxLibrary/GRXImmediateSingleWriter.m index a0da71cb76..0096c996d4 100644 --- a/src/objective-c/RxLibrary/GRXImmediateSingleWriter.m +++ b/src/objective-c/RxLibrary/GRXImmediateSingleWriter.m @@ -76,6 +76,9 @@ // Overrides [requestWriter(Transformations):map:] for Protocol Buffers // encoding. +// We need the return value of this map to be a GRXImmediateSingleWriter but +// the original \a map function returns a new Writer of another type. So we +// need to override this function here. - (GRXWriter *)map:(id (^)(id))map { // Since _value is available when creating the object, we can simply // apply the map and store the output. @@ -83,4 +86,4 @@ return self; } -@end
\ No newline at end of file +@end |