Skip to content

Commit cead1ee

Browse files
committed
CS.
1 parent ffd27b8 commit cead1ee

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ each chunk for md5 hashing while keeping memory usage low. See example bellow.
3232
### Normal usage
3333

3434
```js
35-
var hexHash = SparkMD5.hash('Hi there'); // hex hash
36-
var rawHash = SparkMD5.hash('Hi there', true); // OR raw hash
35+
var hexHash = SparkMD5.hash('Hi there'); // hex hash
36+
var rawHash = SparkMD5.hash('Hi there', true); // OR raw hash
3737
```
3838

3939
### Incremental usage
@@ -42,8 +42,8 @@ var rawHash = SparkMD5.hash('Hi there', true); // OR raw hash
4242
var spark = new SparkMD5();
4343
spark.append('Hi');
4444
spark.append(' there');
45-
var hexHash = spark.end(); // hex hash
46-
var rawHash = spark.end(true); // OR raw hash
45+
var hexHash = spark.end(); // hex hash
46+
var rawHash = spark.end(true); // OR raw hash
4747
```
4848

4949
### Hash a file incrementally

spark-md5.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@
358358
md5cycle(this._hash, md5blk(this._buff.substring(i - 64, i)));
359359
}
360360

361-
this._buff = this._buff.substr(i - 64);
361+
this._buff = this._buff.substring(i - 64);
362362

363363
return this;
364364
};

0 commit comments

Comments
 (0)