From 2a586e35b68b3ea9459abb0acaaca2cadfc78d4a Mon Sep 17 00:00:00 2001 From: Liran Date: Wed, 8 Nov 2017 10:52:53 +0200 Subject: [PATCH] comment with reference out of code block --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4490f33654..c0effcdf7c 100644 --- a/README.md +++ b/README.md @@ -70,8 +70,10 @@ now *getAsync* is a promisified version of *client.get*: return getAsync('foo').then(function(res) { console.log(res); // => 'bar' }); +``` -// or using [async await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function) +or using [async await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function): +```js async myFunc() { const res = await getAsync('foo'); console.log(res);