Skip to content

Commit 5a96806

Browse files
authored
Editorial: define stream variable before using it
pullAlgorithm refers to stream, so we should define stream first.
1 parent 07662d3 commit 5a96806

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fetch.bs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6243,8 +6243,10 @@ optional boolean <var>forceNewConnection</var> (default false), run these steps:
62436243

62446244
<p class="note">This represents an internal buffer inside the network layer of the user agent.
62456245

6246+
<li><p>Let <var>stream</var> be a <a>new</a> {{ReadableStream}}.
6247+
62466248
<li>
6247-
<p>Let |pullAlgorithm| be the followings steps:
6249+
<p>Let |pullAlgorithm| be the following steps:
62486250

62496251
<ol>
62506252
<li><p>Let |promise| be [=a new promise=].
@@ -6279,8 +6281,6 @@ optional boolean <var>forceNewConnection</var> (default false), run these steps:
62796281
<var>fetchParams</var>'s <a for="fetch params">controller</a> with <var>reason</var>, given
62806282
<var>reason</var>.
62816283

6282-
<li><p>Let <var>stream</var> be a <a>new</a> {{ReadableStream}}.
6283-
62846284
<li><p>[=ReadableStream/set up with byte reading support|Set up=] |stream| with byte reading
62856285
support with <var>[=ReadableStream/set up/pullAlgorithm=]</var> set to |pullAlgorithm|,
62866286
<var>[=ReadableStream/set up/cancelAlgorithm=]</var> set to |cancelAlgorithm|.

0 commit comments

Comments
 (0)