Skip to content

Commit

Permalink
fixed typoes in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielJDufour committed May 21, 2023
1 parent c3513b8 commit 138f0e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ decode(encoded);
```javascript
import encode from 'fast-rle/encode';

const numbers = [3, 3, 3, 3, 3, 8, 0, 0];
encode(numbers);
const nums = [3, 3, 3, 3, 3, 8, 0, 0];
encode(nums);
[5, 3, 1, 8, 2, 0]

encode(decoded, { chunk: true });
encode(nums, { chunk: true });
[ [3, 5], [8, 1], [0, 2] ]

encode(decoded, { max_run_length: 2 });
encode(nums, { max_run_length: 2 });
[2, 3, 2, 3, 1, 3, 1, 8, 2, 0]
```

Expand Down

0 comments on commit 138f0e5

Please sign in to comment.