Permalink
Browse files

Fix copy/paste error in sample usage

  • Loading branch information...
1 parent a2038bc commit 829fe1e52be4dde594780021337a293a96d55148 @landonf committed May 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -18,7 +18,7 @@ Sample Use
Use a block to add a new method to NSObject (based on Mike Ash's MABlockClosure example):
int captured = 42;
- id block = ^(id self, SEL _cmd) { NSLog(@"captured is %d", captured); };
+ id block = ^(id self) { NSLog(@"captured is %d", captured); };
block = [block copy];
class_addMethod([NSObject class], @selector(my_printCaptured), pl_imp_implementationWithBlock(block), "v@:");

0 comments on commit 829fe1e

Please sign in to comment.