Skip to content
Browse files

displaying digits in correct order

  • Loading branch information...
1 parent 642f2d4 commit e7a6d18d72ae47b0f81a833bf278f346f298117f @impronunciable impronunciable committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.js
View
2 index.js
@@ -106,7 +106,7 @@ Counter.prototype.update = function(n){
this.ensureDigits(len);
for (var i = 0; i < len; ++i) {
- this.updateDigit(digits - i - 1, str[i]);
+ this.updateDigit(digits - i - 1, str[len - i - 1]);
}
return this;

0 comments on commit e7a6d18

Please sign in to comment.
Something went wrong with that request. Please try again.