Skip to content

Commit

Permalink
Fix a typo and a clumsily-worded sentence.
Browse files Browse the repository at this point in the history
Change "used enqueue" to "used to enqueue" and "by virtue of taking" to "because it takes".
  • Loading branch information
dbaron authored and ricea committed Mar 23, 2018
1 parent 3fddaf8 commit cd63477
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -4258,11 +4258,11 @@ The {{TransformStream()}} constructor accepts as its first argument a JavaScript
<dd>
<p>A function that is called immediately during creation of the {{TransformStream}}.</p>

<p>Typically this is used enqueue prefix <a>chunks</a>, using
<p>Typically this is used to enqueue prefix <a>chunks</a>, using
{{TransformStreamDefaultController/enqueue()|controller.enqueue()}}. Those chunks will be read from the <a>readable
side</a> but don't depend on any writes to the <a>writable side</a>.</p>

<p>If this initial process is asynchronous, for example by virtue of taking some effort to acquire the prefix
<p>If this initial process is asynchronous, for example because it takes some effort to acquire the prefix
chunks, the function can return a promise to signal success or failure; a rejected promise will error the stream.
Any thrown exceptions will be re-thrown by the {{TransformStream()}} constructor.</p>
</dd>
Expand Down

0 comments on commit cd63477

Please sign in to comment.