From eb73bc9329f4847c847d33934168fbbe12920662 Mon Sep 17 00:00:00 2001 From: Yu-Wei Chang Date: Wed, 11 Mar 2015 11:58:38 -0400 Subject: [PATCH] Fix __weak keywork position mistake. --- 2013-07-07-low-level-concurrency-apis.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2013-07-07-low-level-concurrency-apis.md b/2013-07-07-low-level-concurrency-apis.md index 3ac11bd..b7e23fc 100644 --- a/2013-07-07-low-level-concurrency-apis.md +++ b/2013-07-07-low-level-concurrency-apis.md @@ -728,7 +728,7 @@ Here's an example for OSSpinLock: - (NSDictionary *)amountAttributes; { if (_amountAttributes == nil) { - static __weak NSDictionary *cachedAttributes = nil; + static NSDictionary * __weak cachedAttributes = nil; static OSSpinLock lock = OS_SPINLOCK_INIT; OSSpinLockLock(&lock); _amountAttributes = cachedAttributes;