Skip to content

Commit 2d7c6a4

Browse files
committed
Extra line at the EOF
added extra line at the end of the source files so the markdown translations works correctly
1 parent 2cb7dd5 commit 2d7c6a4

File tree

13 files changed

+27
-18
lines changed

13 files changed

+27
-18
lines changed

Design-Patterns.playground.zip

4.88 KB
Binary file not shown.

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

+12-6
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ atm.canWithdraw(165) // Cannot withdraw because ATM doesn't has bill with value
100100
atm.canWithdraw(30) // Can withdraw - 1x20, 2x10
101101
/*:
102102
>**Further Examples:** [Design Patterns in Swift](https://github.com/kingreza/Swift-Chain-Of-Responsibility)
103-
*//*:
103+
*/
104+
/*:
104105
👫 Command
105106
----------
106107

@@ -253,7 +254,8 @@ intContext.assign(c, value: 3)
253254
var result = expression?.evaluate(intContext)
254255
/*:
255256
>**Further Examples:** [Design Patterns in Swift](https://github.com/kingreza/Swift-Interpreter)
256-
*//*:
257+
*/
258+
/*:
257259
🍫 Iterator
258260
-----------
259261

@@ -347,7 +349,8 @@ messagesMediator.addColleague(user1)
347349
user0.send("Hello") // user1 receives message
348350
/*:
349351
>**Further Examples:** [Design Patterns in Swift](https://github.com/kingreza/Swift-Mediator)
350-
*//*:
352+
*/
353+
/*:
351354
💾 Memento
352355
----------
353356

@@ -466,7 +469,8 @@ testChambers.observer = observerInstance
466469
testChambers.testChamberNumber++
467470
/*:
468471
>**Further Examples:** [Design Patterns in Swift](https://github.com/kingreza/Swift-Observer)
469-
*//*:
472+
*/
473+
/*:
470474
🐉 State
471475
---------
472476

@@ -527,7 +531,8 @@ context.changeStateToUnauthorized()
527531
(context.isAuthorized, context.userId)
528532
/*:
529533
>**Further Examples:** [Design Patterns in Swift](https://github.com/kingreza/Swift-State)
530-
*//*:
534+
*/
535+
/*:
531536
💡 Strategy
532537
-----------
533538

@@ -573,7 +578,8 @@ var upper = Printer(strategy:UpperCaseStrategy())
573578
upper.printString("O tempora, o mores!")
574579
/*:
575580
>**Further Examples:** [Design Patterns in Swift](https://github.com/kingreza/Swift-Strategy)
576-
*//*:
581+
*/
582+
/*:
577583
🏃 Visitor
578584
----------
579585

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,9 @@ let empire = DeathStarBuilder { builder in
134134
}
135135

136136
let deathStar = DeathStar(builder:empire)
137-
137+
/*:
138138
>**Further Examples:** [Design Patterns in Swift](https://github.com/kingreza/Swift-Builder)
139+
*/
139140
/*:
140141
🏭 Factory Method
141142
-----------------
@@ -232,7 +233,8 @@ let Eduardo = Prototype.clone()
232233
Eduardo.name = "Eduardo"
233234
/*:
234235
>**Further Examples:** [Design Patterns in Swift](https://github.com/kingreza/Swift-Prototype)
235-
*//*:
236+
*/
237+
/*:
236238
💍 Singleton
237239
------------
238240

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ oldFormat.angleH
6363
oldFormat.angleV
6464
/*:
6565
>**Further Examples:** [Design Patterns in Swift](https://github.com/kingreza/Swift-Adapter)
66-
*//*:
66+
*/
67+
/*:
6768
🌉 Bridge
6869
----------
6970

source/behavioral/chain_of_responsibility.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,4 @@ atm.canWithdraw(165) // Cannot withdraw because ATM doesn't has bill with value
8787
atm.canWithdraw(30) // Can withdraw - 1x20, 2x10
8888
/*:
8989
>**Further Examples:** [Design Patterns in Swift](https://github.com/kingreza/Swift-Chain-Of-Responsibility)
90-
*/
90+
*/

source/behavioral/interpreter.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,4 @@ intContext.assign(c, value: 3)
9090
var result = expression?.evaluate(intContext)
9191
/*:
9292
>**Further Examples:** [Design Patterns in Swift](https://github.com/kingreza/Swift-Interpreter)
93-
*/
93+
*/

source/behavioral/mediator.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@ messagesMediator.addColleague(user1)
6464
user0.send("Hello") // user1 receives message
6565
/*:
6666
>**Further Examples:** [Design Patterns in Swift](https://github.com/kingreza/Swift-Mediator)
67-
*/
67+
*/

source/behavioral/observer.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ testChambers.observer = observerInstance
4848
testChambers.testChamberNumber++
4949
/*:
5050
>**Further Examples:** [Design Patterns in Swift](https://github.com/kingreza/Swift-Observer)
51-
*/
51+
*/

source/behavioral/state.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ context.changeStateToUnauthorized()
5959
(context.isAuthorized, context.userId)
6060
/*:
6161
>**Further Examples:** [Design Patterns in Swift](https://github.com/kingreza/Swift-State)
62-
*/
62+
*/

source/behavioral/strategy.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ var upper = Printer(strategy:UpperCaseStrategy())
4444
upper.printString("O tempora, o mores!")
4545
/*:
4646
>**Further Examples:** [Design Patterns in Swift](https://github.com/kingreza/Swift-Strategy)
47-
*/
47+
*/

source/creational/builder.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ let empire = DeathStarBuilder { builder in
5353
let deathStar = DeathStar(builder:empire)
5454
/*:
5555
>**Further Examples:** [Design Patterns in Swift](https://github.com/kingreza/Swift-Builder)
56-
*/
56+
*/

source/creational/prototype.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ let Eduardo = Prototype.clone()
3434
Eduardo.name = "Eduardo"
3535
/*:
3636
>**Further Examples:** [Design Patterns in Swift](https://github.com/kingreza/Swift-Prototype)
37-
*/
37+
*/

source/structural/adapter.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ oldFormat.angleH
5050
oldFormat.angleV
5151
/*:
5252
>**Further Examples:** [Design Patterns in Swift](https://github.com/kingreza/Swift-Adapter)
53-
*/
53+
*/

0 commit comments

Comments
 (0)