the-swift-programming-language-in-chinese icon indicating copy to clipboard operation
the-swift-programming-language-in-chinese copied to clipboard

中文版 Apple 官方 Swift 教程《The Swift Programming Language》

Results 22 the-swift-programming-language-in-chinese issues
Sort by recently updated
recently updated
newest added

原文:the value stored in board[square] is added to the current square value 根据程序的意思square += board[square],也应该是在square上增加board[square]

"可以确定一个可选类型_总会_有值。" => "可以确定一个可选类型**总会**有值。" The underline ('_') cannot have a bold effect. ![WX20240313-110416@2x](https://github.com/SwiftGGTeam/the-swift-programming-language-in-chinese/assets/19246724/ac730d22-a2bc-43f9-853c-4e5deab11039)

03_strings_and_characters 丢失示例图片:https://docs.swift.org/swift-book/_images/multilineStringWhitespace_2x.png

根据Apple 官方文档 https://docs.swift.org/swift-book/documentation/the-swift-programming-language/protocols#Optional-Protocol-Requirements Both the protocol and the optional requirement must be marked with the @objc attribute. Note that @objc protocols can be adopted only by classes, not by structures...

- 原文:The closure expression also specifies a return type of String, to indicate the type that will be stored in the mapped output array. - 译文:闭包表达式指定了返回类型为 String,以表明存储映射值的新数组类型为 String。 新数组类型应该为[String] 而不是String...

问题:The Basics(整数转换小节)中,两个波浪符中间的文本内容在 git 和 gitbook 上会显示出删除线,容易造成读者困惑。 解决方式:对该处的两个 `~` 进行转义

swift教程-构造过程-构造器代理图 等图片无法展示

更正代码块内容,否则运行完上文代码后,运行该代码会提示未找到`nickname`变量 `error: cannot find 'nickname' in scope` ![图片](https://github.com/SwiftGGTeam/the-swift-programming-language-in-chinese/assets/26035594/6c227d44-fd72-4bed-b3b3-6c6e5d69f56e)