Permalink
Browse files

Update readme code samples.

  • Loading branch information...
1 parent c759c3e commit 0a7fe2b225bc12742b76b5702aa199d3c5ba1316 Owain R Hunt committed Apr 7, 2012
Showing with 14 additions and 3 deletions.
  1. +14 −3 README.md
View
@@ -29,9 +29,20 @@ The `master` branch is built on version 3 of the API, and uses up-to-date techno
* Call some methods.
-* Examples:
- `[engine repositoriesWithSuccess:^(id response){ NSLog(@"Got an array of repos: %@", obj); } failure:^(NSError *error) { NSLog(@"Crapsticks: %@", error);}];`
- `[engine user:@"this_guy" isCollaboratorForRepository:@"UAGithubEngine" success:^(BOOL hotOrNot) { NSLog(@"%d", hotOrNot); } failure:^(NSError *error){ NSLog(@"Monkey balls: %@", error); }];`
+## Examples
+```
+[engine repositoriesWithSuccess:^(id response){
+ NSLog(@"Got an array of repos: %@", obj);
+ } failure:^(NSError *error) {
+ NSLog(@"Crapsticks: %@", error);
+ }];
+
+[engine user:@"this_guy" isCollaboratorForRepository:@"UAGithubEngine" success:^(BOOL hotOrNot) {
+ NSLog(@"%d", hotOrNot);
+ } failure:^(NSError *error){
+ NSLog(@"Monkey balls: %@", error);
+ }];
+```
Any questions, comments, improvements and so on, you can find me on Twitter (@orhunt) or send me an email (owain@underscoreapps.com).

0 comments on commit 0a7fe2b

Please sign in to comment.