diff --git a/g3doc/index.md b/g3doc/index.md index ba4417f..2b2efc7 100644 --- a/g3doc/index.md +++ b/g3doc/index.md @@ -776,22 +776,22 @@ Objective-C: FBLPromise *numberPromise = [FBLPromise resolvedWith:@42]; // Return another promise. -FBLPromise chainedStringPromise = [numberPromise then:^id(NSNumber *number) { +FBLPromise *chainedStringPromise = [numberPromise then:^id(NSNumber *number) { return [self stringFromNumber:number]; }]; // Return any value. -FBLPromise chainedStringPromise = [numberPromise then:^id(NSNumber *number) { +FBLPromise *chainedStringPromise = [numberPromise then:^id(NSNumber *number) { return [number stringValue]; }]; // Return an error. -FBLPromise chainedStringPromise = [numberPromise then:^id(NSNumber *number) { +FBLPromise *chainedStringPromise = [numberPromise then:^id(NSNumber *number) { return [NSError errorWithDomain:@"" code:0 userInfo:nil]; }]; // Fake void return. -FBLPromise chainedStringPromise = [numberPromise then:^id(NSNumber *number) { +FBLPromise *chainedStringPromise = [numberPromise then:^id(NSNumber *number) { NSLog(@"%@", number); return nil; // OR