Skip to content

Commit

Permalink
update description (cocos#17823)
Browse files Browse the repository at this point in the history
  • Loading branch information
minggo authored Nov 7, 2024
1 parent f038109 commit 4020b32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cocos/core/memop/recycle-pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ export class RecyclePool<T = any> extends ScalableContainer {
}

/**
* @en Expand the array size to 2 times the original size, and fills with new created elements.
* @zh 扩充对象池容量,会自动扩充尺寸到原来的 2 倍,并填充新的元素
* @en Adds a new element. If the capacity is insufficient, it will automatically expand to twice its original size.
* @zh 添加一个新元素,如果容量不足,会自动扩充尺寸到原来的 2 倍。
*/
public add (): T {
if (this._count$ >= this._data$.length) {
Expand Down

0 comments on commit 4020b32

Please sign in to comment.