From e4cc841ebda0a1c5d3ccea25eb6b889f90a21e06 Mon Sep 17 00:00:00 2001 From: dirkmc Date: Mon, 29 Apr 2019 17:32:51 +0800 Subject: [PATCH] chore: fix typos in README (#50) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 43dbb2d..f8f6448 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ describe('compliance', () => { delay (delayMs) { // Add a delay in the connection mechanism for the transport // (this is used by the dial tests) - network.connect = (...args) => setTimeout(() => connect(...args), 100) + network.connect = (...args) => setTimeout(() => connect(...args), delayMs) }, restore () { // Restore the connection mechanism to normal @@ -109,7 +109,7 @@ A valid transport (one that follows the interface defined) must implement the fo ### Creating a transport instance -- `JavaScript` - `var transport = new Transport([options])` +- `JavaScript` - `const transport = new Transport([options])` Creates a new Transport instance. `options` is an optional JavaScript object that should include the necessary parameters for the transport instance.