Skip to content

Commit 7b1b68c

Browse files
committed
docs: update docs
1 parent 2d0d1bc commit 7b1b68c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

docs/en/cases/loop.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ The above implementation leverages the official API, but you can also implement
6262
>
6363
> > You can copy the following code and paste it into the console of the online [**demo**](https://imtaotao.github.io/danmu/) to see the effect.
6464
65-
```ts {7,11,15}
65+
```ts {7,11,15-16}
6666
let loops = 0;
6767

6868
manager.push('content', {
@@ -77,8 +77,9 @@ manager.push('content', {
7777

7878
// If you have limits on memory and view, it may cause the send to fail
7979
// You can call `manager.canPush('facile')` to check
80+
danmaku.loops = 0;
8081
manager.unshift(danmaku);
8182
},
8283
},
83-
}),
84+
});
8485
```

docs/zh/cases/loop.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ manager.push('弹幕内容', {
6262
>
6363
> > 你可以复制下面这段代码,然后粘贴在在线 [**demo**](https://imtaotao.github.io/danmu/) 的控制台上查看效果。
6464
65-
```ts {7,11,15}
65+
```ts {7,11,15-16}
6666
let loops = 0;
6767

6868
manager.push('弹幕内容', {
@@ -77,8 +77,9 @@ manager.push('弹幕内容', {
7777

7878
// 如果你有对内存和视图做限,可能会导致发送失败
7979
// 你可以调用 manager.canPush('facile') 来判断
80+
danmaku.loops = 0;
8081
manager.unshift(danmaku);
8182
},
8283
},
83-
}),
84+
});
8485
```

0 commit comments

Comments
 (0)