From 29a912df09c9d7edf5b6efdb4f45c9b7b428fc4d Mon Sep 17 00:00:00 2001
From: Muxi Yan <mxyan@google.com>
Date: Mon, 27 Mar 2017 15:14:23 -0700
Subject: [PATCH] Add more comments

---
 src/objective-c/RxLibrary/GRXImmediateSingleWriter.m | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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
-- 
GitLab