diff --git a/README.md b/README.md index fff3c67..c57df85 100755 --- a/README.md +++ b/README.md @@ -430,12 +430,12 @@ var pro = new util.LruBuffer(); pro.put(2,10); pro.clear(); ``` -36.getCreatCount() +36.getCreateCount() ``` import util from '@ohos.util' var pro = new util.LruBuffer(); pro.put(1,8); -var result = pro.getCreatCount(); +var result = pro.getCreateCount(); ``` 37.getMissCount() ``` diff --git a/README_zh.md b/README_zh.md index 56f00e0..3f2d966 100644 --- a/README_zh.md +++ b/README_zh.md @@ -430,12 +430,12 @@ var pro = new util.LruBuffer(); pro.put(2,10); pro.clear(); ``` -36.getCreatCount() +36.getCreateCount() ``` import util from '@ohos.util' var pro = new util.LruBuffer(); pro.put(1,8); -var result = pro.getCreatCount(); +var result = pro.getCreateCount(); ``` 37.getMissCount() ``` diff --git a/util/src/util_js.ts b/util/src/util_js.ts index e174739..09cf79d 100644 --- a/util/src/util_js.ts +++ b/util/src/util_js.ts @@ -507,7 +507,7 @@ class LruBuffer this.cache.set(key, value); return former; } - public getCreatCount() + public getCreateCount() { return this.createCount; }