From 7795615dace83127ca4309b5495a26a0952d4207 Mon Sep 17 00:00:00 2001 From: Henry Zhu Date: Wed, 28 Jun 2017 06:49:55 -0400 Subject: [PATCH] fix example [skip ci] --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0a3b2e86fc..100711d660 100644 --- a/README.md +++ b/README.md @@ -131,9 +131,9 @@ require("babylon").parse("code", { | Name | Code Example | |------|--------------| | `estree` ([repo](https://github.com/estree/estree)) | n/a | -| `jsx` ([repo](https://facebook.github.io/jsx/)) | `` | +| `jsx` ([repo](https://facebook.github.io/jsx/)) | `{s}` | | `flow` ([repo](https://github.com/facebook/flow)) | `var a: string = "";` | -| `doExpressions` | `var a = do { return 'hi'; };` | +| `doExpressions` | `var a = do { if (true) { 'hi'; } };` | | `objectRestSpread` ([proposal](https://github.com/tc39/proposal-object-rest-spread)) | `var a = { b, ...c };` | | `decorators` (Stage 1) and `decorators2` (Stage 2) | `@a class A {}` | | `classProperties` ([proposal](https://github.com/tc39/proposal-class-public-fields)) | `class A { b = 1; }` | @@ -142,7 +142,7 @@ require("babylon").parse("code", { | `asyncGenerators` ([proposal](https://github.com/tc39/proposal-async-iteration)) | `async function*() {}`, `for await (let a of b) {}` | | `functionBind` ([proposal](https://github.com/zenparsing/es-function-bind)) | `a::b`, `::console.log` | | `functionSent` | `function.sent` | -| `dynamicImport` ([proposal](https://github.com/tc39/proposal-dynamic-import)) | `import('./guy').then()` | +| `dynamicImport` ([proposal](https://github.com/tc39/proposal-dynamic-import)) | `import('./guy').then(a)` | | `numericSeparator` ([proposal](https://github.com/samuelgoto/proposal-numeric-separator)) | `1_000_000` | | `optionalChaining` ([proposal](https://github.com/tc39/proposal-optional-chaining)) | `a?.b` | | `importMeta` ([proposal](https://github.com/tc39/proposal-import-meta)) | `import.meta.url` |