mirror of
https://github.com/labs42io/clean-code-typescript.git
synced 2024-11-23 05:34:04 +00:00
Fix typo (#49)
This commit is contained in:
parent
2172a87caf
commit
2d09badb68
|
@ -2050,7 +2050,7 @@ class ReportReader {
|
|||
|
||||
// ...
|
||||
const reader = new ReportReader();
|
||||
await report = await reader.read('report.xml');
|
||||
const report = await reader.read('report.xml');
|
||||
```
|
||||
|
||||
**Good:**
|
||||
|
@ -2094,11 +2094,11 @@ class ReportReader {
|
|||
|
||||
// ...
|
||||
const reader = new ReportReader(new XmlFormatter());
|
||||
await report = await reader.read('report.xml');
|
||||
const report = await reader.read('report.xml');
|
||||
|
||||
// or if we had to read a json report
|
||||
const reader = new ReportReader(new JsonFormatter());
|
||||
await report = await reader.read('report.json');
|
||||
const report = await reader.read('report.json');
|
||||
```
|
||||
|
||||
**[⬆ back to top](#table-of-contents)**
|
||||
|
|
Loading…
Reference in a new issue