mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-13 04:15:07 +00:00
docs: Fix typos in factory pattern README (#2605)
This commit is contained in:
1 parent
cbe84b3b9d
commit
07663ce2bd
1 file changed
+2
-2
+2
-2
@@ -60,7 +60,7 @@ public class CopperCoin implements Coin {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Enumeration above represents types of coins that we support (`GoldCoin` and `CopperCoin`).
|
Enumeration below represents types of coins that we support (`GoldCoin` and `CopperCoin`).
|
||||||
|
|
||||||
```java
|
```java
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@@ -110,7 +110,7 @@ This is a gold coin.
|
|||||||
|
|
||||||
## Applicability
|
## Applicability
|
||||||
|
|
||||||
Use the factory pattern when you only care about the creation of a object, not how to create
|
Use the factory pattern when you only care about the creation of an object, not how to create
|
||||||
and manage it.
|
and manage it.
|
||||||
|
|
||||||
Pros
|
Pros
|
||||||
|
|||||||
Reference in new issue
Block a user