summaryrefslogtreecommitdiffhomepage
path: root/objective-c.html.markdown
diff options
context:
space:
mode:
authorLevi Bostian <levi.bostian@gmail.com>2015-10-18 12:22:33 -0500
committerLevi Bostian <levi.bostian@gmail.com>2015-10-18 12:22:33 -0500
commit3a968a826b621c0e484268532d6b96a7b2865c8a (patch)
tree1fa411dbee14f0aa81594fc03232a083ef65323f /objective-c.html.markdown
parent3d70c872e4433ab34e568ff9f32adccd37c9c275 (diff)
Fix issue with calling block code.
Fixes https://github.com/adambard/learnxinyminutes-docs/issues/1598
Diffstat (limited to 'objective-c.html.markdown')
-rw-r--r--objective-c.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/objective-c.html.markdown b/objective-c.html.markdown
index 30bb8843..f130ea0c 100644
--- a/objective-c.html.markdown
+++ b/objective-c.html.markdown
@@ -688,7 +688,7 @@ addUp = ^(int n) { // Remove (int n) to have a block that doesn't take in any pa
mutableVar = 32; // Assigning new value to __block variable.
return n + outsideVar; // Return statements are optional.
}
-int addUp = add(10 + 16); // Calls block code with arguments.
+int addUp = addUp(10 + 16); // Calls block code with arguments.
// Blocks are often used as arguments to functions to be called later, or for callbacks.
@implementation BlockExample : NSObject