Skip to content

Commit 3914d60

Browse files
committed
fix blocks [2]
1 parent 846e5d5 commit 3914d60

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

5-network/03-fetch-progress/article.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ while(true) {
3030
```
3131

3232
نتیجه‌ی فراخوانی `await reader.read()` یک شیء با دو ویژگی است:
33-
* ویژگی **`done`** -- زمانی `true` می‌شود که خواندن کامل شده باشد، در غیر این صورت `false` است.
34-
* ویژگی **`value`** -- یک آرایه تایپ‌شده از بایت‌ها: `Uint8Array`.
33+
- ویژگی **`done`** -- زمانی `true` می‌شود که خواندن کامل شده باشد، در غیر این صورت `false` است.
34+
- ویژگی **`value`** -- یک آرایه تایپ‌شده از بایت‌ها: `Uint8Array`.
3535

3636
```smart
3737
توجه: Streams API همچنین پیمایش ناهمزمان (`async iteration`) روی `ReadableStream` را با حلقه‌ی `for await..of` تعریف می‌کند، اما هنوز به طور گسترده پشتیبانی نمی‌شود (به [مشکلات مرورگرها](https://github.com/whatwg/streams/issues/778#issuecomment-461341033) مراجعه کنید)، بنابراین از حلقه‌ی `while` استفاده می‌کنیم.
@@ -72,8 +72,8 @@ while(true) {
7272
let chunksAll = new Uint8Array(receivedLength); // (مرحله 4.1)
7373
let position = 0;
7474
for(let chunk of chunks) {
75-
chunksAll.set(chunk, position); // (مرحله 4.2)
76-
position += chunk.length;
75+
chunksAll.set(chunk, position); // (مرحله 4.2)
76+
position += chunk.length;
7777
}
7878

7979
// مرحله 5: تبدیل به رشته

0 commit comments

Comments
 (0)