From a502f8d723403021c4cf440030874bc602de474c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D0=BE=D1=80=D0=B8=D1=81=20=D0=92=D0=B5=D1=80=D1=85?= =?UTF-8?q?=D0=BE=D0=B2=D1=81=D0=BA=D0=B8=D0=B9?= Date: Tue, 25 May 2021 07:42:50 -0400 Subject: Rename OS X to macOS (#4166) --- swift.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'swift.html.markdown') diff --git a/swift.html.markdown b/swift.html.markdown index 3981a4ce..39a5cc52 100644 --- a/swift.html.markdown +++ b/swift.html.markdown @@ -12,7 +12,7 @@ contributors: filename: learnswift.swift --- -Swift is a programming language for iOS and OS X development created by Apple. Designed to coexist with Objective-C and to be more resilient against erroneous code, Swift was introduced in 2014 at Apple's developer conference WWDC. It is built with the LLVM compiler included in Xcode 6+. +Swift is a programming language for iOS and macOS development created by Apple. Designed to coexist with Objective-C and to be more resilient against erroneous code, Swift was introduced in 2014 at Apple's developer conference WWDC. It is built with the LLVM compiler included in Xcode 6+. The official _[Swift Programming Language](https://itunes.apple.com/us/book/swift-programming-language/id881256329)_ book from Apple is now available via iBooks. It goes into much more detail than this guide, and if you have the time and patience to read it, it's recommended. Some of these examples are from that book. -- cgit v1.2.3 From 3dd9becb0fb3a350644aad3607e64dae58299ffd Mon Sep 17 00:00:00 2001 From: Chen Yufei Date: Sat, 30 Oct 2021 17:26:41 +0800 Subject: [swift/en] fix typo about break statement in loop (#4258) Just a small fix. --- swift.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'swift.html.markdown') diff --git a/swift.html.markdown b/swift.html.markdown index 39a5cc52..0e68e65f 100644 --- a/swift.html.markdown +++ b/swift.html.markdown @@ -334,7 +334,7 @@ repeat { } while i < 5 // The continue statement continues executing a loop at the next iteration -// The break statement ends a swift or loop immediately +// The break statement ends a loop immediately // MARK: - Functions -- cgit v1.2.3 From d24f135208ca072eb7be3320c1221d192d65c9cf Mon Sep 17 00:00:00 2001 From: Xing Zheng Date: Tue, 4 Jan 2022 00:16:36 +0800 Subject: fix a typo (#4172) the variable name should be `someIdentifier` instead of `willSet`. --- swift.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'swift.html.markdown') diff --git a/swift.html.markdown b/swift.html.markdown index 0e68e65f..e46dcc75 100644 --- a/swift.html.markdown +++ b/swift.html.markdown @@ -654,7 +654,7 @@ class Rect: Shape { // but still want to run code before and after getting or setting // a property, you can use `willSet` and `didSet` var identifier: String = "defaultID" { - // the `willSet` arg will be the variable name for the new value + // the `someIdentifier` arg will be the variable name for the new value willSet(someIdentifier) { print(someIdentifier) } -- cgit v1.2.3