Skip to content

Commit 1d7d623

Browse files
committed
+generation
1 parent 323e077 commit 1d7d623

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Design-Patterns.playground.zip

0 Bytes
Binary file not shown.

Design-Patterns.playground/section-20.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Euro : Currency {
1313
}
1414
}
1515

16-
class UnitedStatedDolar : Currency {
16+
class UnitedStatesDolar : Currency {
1717
func symbol() -> String {
1818
return "$"
1919
}
@@ -33,7 +33,7 @@ class CurrencyFactory {
3333
case .Spain, .France :
3434
return Euro()
3535
case .UnitedStates :
36-
return UnitedStatedDolar()
36+
return UnitedStatesDolar()
3737
default:
3838
return nil
3939
}

0 commit comments

Comments
 (0)