Skip to content

Commit 3dde561

Browse files
sookim-1ochococo
authored andcommitted
Fix prototypesource code
1 parent df2d836 commit 3dde561

File tree

6 files changed

+5
-11
lines changed

6 files changed

+5
-11
lines changed

Design-Patterns-CN.playground/Pages/Creational.xcplaygroundpage/Contents.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ let screenTitle: String = Settings().currentTheme == .old ? "Itunes Connect" : "
236236

237237
### 示例:
238238
*/
239-
struct MoonWorker {
239+
class MoonWorker {
240240

241241
let name: String
242242
var health: Int = 100

Design-Patterns.playground/Pages/Creational.xcplaygroundpage/Contents.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ This practise is particularly useful when the construction of a new object is in
241241

242242
### Example
243243
*/
244-
struct MoonWorker {
244+
class MoonWorker {
245245

246246
let name: String
247247
var health: Int = 100

Design-Patterns.playground/Pages/Creational.xcplaygroundpage/timeline.xctimeline

-6
This file was deleted.

README-CN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ let screenTitle: String = Settings().currentTheme == .old ? "Itunes Connect" : "
10541054
### 示例:
10551055

10561056
```swift
1057-
struct MoonWorker {
1057+
class MoonWorker {
10581058

10591059
let name: String
10601060
var health: Int = 100

source-cn/creational/prototype.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
### 示例:
88
*/
9-
struct MoonWorker {
9+
class MoonWorker {
1010

1111
let name: String
1212
var health: Int = 100

source/creational/prototype.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This practise is particularly useful when the construction of a new object is in
77

88
### Example
99
*/
10-
struct MoonWorker {
10+
class MoonWorker {
1111

1212
let name: String
1313
var health: Int = 100

0 commit comments

Comments
 (0)