From 2d09badb6845924b2db4884672c5f16e79e814e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20P=C3=A9czeli?= <7523167+balazspeczeli@users.noreply.github.com> Date: Fri, 12 Nov 2021 23:36:58 +0100 Subject: [PATCH] Fix typo (#49) --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 32e53b9..681da7c 100644 --- a/README.md +++ b/README.md @@ -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)**