Skip to content

Commit

Permalink
Meta: Fix an example in the FileSystemObserver explainer (whatwg#144)
Browse files Browse the repository at this point in the history
An example in the FileSystemObserver explainer has a callback that uses
the await operator but is not an async function. This makes it an
async function.
  • Loading branch information
nathanmemmott committed Sep 15, 2023
1 parent 21c25da commit e3aa98a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proposals/FileSystemObserver.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ A `FileSystemObserver` allows changes to the file to be observed with much more
```javascript
// Same as above, but using the proposed FileSystemObserver

const callback = (records, observer) => {
const callback = async (records, observer) => {
// Will be run when the observed file changes.

// The change record includes a handle detailing which file has
Expand Down

0 comments on commit e3aa98a

Please sign in to comment.