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(-) 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