Skip to content

Commit

Permalink
style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yutakahirano committed Mar 18, 2015
1 parent 6de3c0c commit 9cf4be1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,13 @@ fetch("http://www.example.com/").then(res => res.body.getReader())
// The user agent may terminate the fetch because the reader is not
// active.
fetch("http://www.example.com/")
.then(res => res.body.getReader().releaseLock());
.then(res => res.body.getReader().releaseLock())
// The user agent must not terminate the fetch because there is an
// active reader. Even though the reader is not reachable by the garbage
// collector, the reader has been used to make termination observable, so
// if termination occurred on GC, that would make GC observable.
fetch("http://www.example.com/").then(res => {
res.body.getReader().closed.then(() => console.log("stream closed!"));
});
res.body.getReader().closed.then(() => console.log("stream closed!"))
})
```

0 comments on commit 9cf4be1

Please sign in to comment.