Skip to content

Commit

Permalink
Fixes missing ptrs in docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristan Emrich committed Mar 11, 2019
1 parent e751258 commit c1cb64f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions g3doc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -776,22 +776,22 @@ Objective-C:
FBLPromise<NSNumber *> *numberPromise = [FBLPromise resolvedWith:@42];

// Return another promise.
FBLPromise<NSString *> chainedStringPromise = [numberPromise then:^id(NSNumber *number) {
FBLPromise<NSString *> *chainedStringPromise = [numberPromise then:^id(NSNumber *number) {
return [self stringFromNumber:number];
}];

// Return any value.
FBLPromise<NSString *> chainedStringPromise = [numberPromise then:^id(NSNumber *number) {
FBLPromise<NSString *> *chainedStringPromise = [numberPromise then:^id(NSNumber *number) {
return [number stringValue];
}];

// Return an error.
FBLPromise<NSString *> chainedStringPromise = [numberPromise then:^id(NSNumber *number) {
FBLPromise<NSString *> *chainedStringPromise = [numberPromise then:^id(NSNumber *number) {
return [NSError errorWithDomain:@"" code:0 userInfo:nil];
}];

// Fake void return.
FBLPromise<NSString *> chainedStringPromise = [numberPromise then:^id(NSNumber *number) {
FBLPromise<NSString *> *chainedStringPromise = [numberPromise then:^id(NSNumber *number) {
NSLog(@"%@", number);
return nil;
// OR
Expand Down

0 comments on commit c1cb64f

Please sign in to comment.