sanex3339 %!s(int64=8) %!d(string=hai) anos
pai
achega
44e5c3664c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
         }