Skip to content

Commit

Permalink
Merge pull request #11 from travisjeffery/fix-code-examples
Browse files Browse the repository at this point in the history
Fix code examples (fixes #4)
  • Loading branch information
bklimt committed Feb 6, 2014
2 parents d6055ef + 2abbf19 commit e6709d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Every `BFTask` has a method named `continueWithBlock` which takes a continuation
// the save failed.
} else {
// the object was saved successfully.
PFObject *object = task.result();
PFObject *object = task.result;
}
return nil;
}];
Expand Down Expand Up @@ -161,7 +161,7 @@ If you know the result of a task at the time it is created, there are some conve
```objective-c
BFTask *successful = [BFTask taskWithResult:@"The good result."];

BFTask *failed = [BFTask taskWithError:anError];
BFTask *failed = [BFTask taskWithError:anError];
```
## Creating Async Methods
Expand All @@ -181,7 +181,7 @@ With these tools, it's easy to make your own asynchronous functions that return
return task.task;
}
```

It's similarly easy to create `saveAsync`, `findAsync` or `deleteAsync`.

## Tasks in Series
Expand Down

0 comments on commit e6709d6

Please sign in to comment.