Add comments for map function

pull/9247/head
Muxi Yan 8 years ago
parent 44e1837ef9
commit 01bbf87bf7
  1. 4
      src/objective-c/RxLibrary/GRXImmediateSingleWriter.m

@ -75,7 +75,11 @@
return; return;
} }
// Overrides [requestWriter(Transformations):map:] for Protocol Buffers
// encoding.
- (GRXWriter *)map:(id (^)(id))map { - (GRXWriter *)map:(id (^)(id))map {
// Since _value is available when creating the object, we can simply
// apply the map and store the output.
_value = map(_value); _value = map(_value);
return self; return self;
} }

Loading…
Cancel
Save