Skip to content

Commit e9e505b

Browse files
committed
docs: ✏️ add clojure_vs_block qa fix typo for Closure
1 parent 7d780f9 commit e9e505b

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

02_Swift_interview_questions/theory.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2019,7 +2019,7 @@ IndexingIterator,类似 IteratorProtocol;
20192019

20202020
## Swift 的闭包(Closure) 和 OC 的 Block
20212021

2022-
![](../assets/clojure_vs_block.jpg)
2022+
![](../assets/closure_vs_block.jpg)
20232023

20242024
本质上 OC 的 block 就是⼀个结构体,然后这个结构体⾥⾯有⼀个结构体成员专⻔⽤来保存捕捉对象,因此才会导致
20252025
被 block 捕捉引⽤ +1  ,或者说 block 是⼀个带有⾃动变量(局部变量)的匿名函数
494 KB
Loading

0 commit comments

Comments
 (0)