From 183d4aa492f086ab0a8643412811d633ad0b1f50 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Tue, 18 Sep 2018 19:11:05 +0200 Subject: [PATCH] Improve example formatting Signed-off-by: Knut Ahlers --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fdd2292..495ea93 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,10 @@ Afterwards in your HTML you can include the `wasm_exec.js` and load the binary: function opensslLoaded() { console.log("openssl.wasm loaded") } const go = new Go() - WebAssembly.instantiateStreaming(fetch("openssl.wasm"), go.importObject).then(async obj => await go.run(obj.instance)) + WebAssembly.instantiateStreaming(fetch("openssl.wasm"), go.importObject) + .then(async (obj) => { + await go.run(obj.instance) + })