Tags:Swift, questinon, 问题@H_502_2@
《The Swift Programming Language》原版中的问题汇总
问题描述
(一)
@H_403_10@位置章:Automatic Reference Counting
节:Strong Reference Cycles Between Class Instances
链接:位置@H_502_2@
描述
实例代码和图片不匹配
图片中的“var number73”仍然是Swift1.0版本的内容,2.0版本中已经换成了“var unit4A”。以下是截图:
@H_502_2@
(二)
位置
章:Protocols
节:Optional Protocol Requirements
链接:位置@H_502_2@
描述
本来要表述的意思是协议的可选内容可以通过可选链进行访问,但代码有错1。“dataSource?.fixedIncrement”后面漏了一个问号。以下是截图:
@H_502_2@
报告内容
(一)
I’m reading this document–The Swift Programming Language.
I think I have found two mistick in it,but I don’t know how to reprot them.@H_502_2@
The first one is in chapter “Automatic Reference Counting”,there are 3 pictures in the section of “Resolving Strong Reference Cycles Between Class Instances”,the pictures does not match the example code,you can’t find the expression “var number73”.@H_502_2@
The second one is in the chapter of “Protocols”,there is a example code after the second NOTE in the section “Optional Protocol Requirements” .I think maybe a “?” is missing after the “dataSource?.fixedIncrement”. @H_502_2@