Skip to content
Permalink
Browse files
Update CHANGES.md
  • Loading branch information
mbostock committed Mar 22, 2018
1 parent 932a66d commit 409ee406ebed323cebeb6bfecaf08641616e79ff
Showing 1 changed file with 1 addition and 1 deletion.
@@ -21,7 +21,7 @@ d3.csv("file.csv").then(function(data) {
});
```

Note that you don’t need to check the error—the promise will reject automatically, and you can *promise*.catch if desired. Using await, the code is even simpler:
Note that you don’t need to rethrow the error—the promise will reject automatically, and you can *promise*.catch if desired. Using await, the code is even simpler:

```js
const data = await d3.csv("file.csv");

0 comments on commit 409ee40

Please sign in to comment.