Skip to content

Commit

Permalink
Merge pull request SwiftGGTeam#130 from yulingtianxia/gh-pages
Browse files Browse the repository at this point in the history
Update 16_Automatic_Reference_Counting.md
  • Loading branch information
wh1100717 committed Jun 12, 2014
2 parents d1434ec + c8931bb commit e9e3af7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/chapter2/16_Automatic_Reference_Counting.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ Swift 使用自动引用计数(ARC)这一机制来跟踪和管理你的应

如果你通过给两个变量赋值`nil`的方式断开两个强引用()包括最先的那个强引用),只留下一个强引用,`Person`实例不会被销毁:

reference2 = reference1
reference3 = reference1
reference2 = nil
reference3 = nil

ARC 会在第三个,也即最后一个强引用被断开的时候,销毁`Person`实例,这也意味着你不再使用这个`Person`实例:

Expand Down

0 comments on commit e9e3af7

Please sign in to comment.