瀏覽代碼

tslint fix

sanex3339 8 年之前
父節點
當前提交
44e5c3664c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/utils/Utils.ts

+ 1 - 1
src/utils/Utils.ts

@@ -102,7 +102,7 @@ export class Utils {
             throw new ReferenceError(`Cannot rotate empty string.`);
         }
 
-        for (let i = 0; i < times; i++) {
+        for (let i: number = 0; i < times; i++) {
             string = string[string.length - 1] + string.substring(0, string.length - 1);
         }