《The Swift Programming Language》原版中的问题汇总

Tags:Swift, questinon, 问题

《The Swift Programming Language》原版中的问题汇总

问题描述

(一)

位置

章:Automatic Reference Counting
节:Strong Reference Cycles Between Class Instances
链接位置

描述

实例代码图片不匹配
图片中的“var number73”仍然是Swift1.0版本的内容,2.0版本中已经换成了“var unit4A”。以下是截图:

(二)

位置

章:Protocols
节:Optional Protocol Requirements
链接位置

描述

本来要表述的意思是协议的可选内容可以通过可选链进行访问,但代码有错1。“dataSource?.fixedIncrement”后面漏了一个问号。以下是截图:

报告内容

(一)

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.

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”.

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”.

  1. 这里和1.0版本不同,报告过错误后,发现也许是误报。可选链最后面一个内容如果是可选的,还需要加问号吗?

相关文章

软件简介:蓝湖辅助工具,减少移动端开发中控件属性的复制和粘...
现实生活中,我们听到的声音都是时间连续的,我们称为这种信...
前言最近在B站上看到一个漂亮的仙女姐姐跳舞视频,循环看了亿...
【Android App】实战项目之仿抖音的短视频分享App(附源码和...
前言这一篇博客应该是我花时间最多的一次了,从2022年1月底至...
因为我既对接过session、cookie,也对接过JWT,今年因为工作...