docs: Fix typos in factory pattern README (#2605)

This commit is contained in:
Matheus Braga
2023-10-14 08:11:10 -03:00
committed by GitHub
parent cbe84b3b9d
commit 07663ce2bd
+2 -2
View File
@@ -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