mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 06:58:54 +00:00
docs: Fix typos in factory pattern README (#2605)
This commit is contained in:
+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
|
||||
@RequiredArgsConstructor
|
||||
@@ -110,7 +110,7 @@ This is a gold coin.
|
||||
|
||||
## 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.
|
||||
|
||||
Pros
|
||||
|
||||
Reference in New Issue
Block a user