Skip to content

Commit 1cad36a

Browse files
committed
Tweaks.
1 parent 1c2b487 commit 1cad36a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ To compress a string, you can easily use either `FourBitAsciiCompressor`, `FiveB
5757

5858
### Creating a compressor object
5959
```java
60-
AsciiCompressor compressor = new SixBitAsciiCompressor();
60+
var compressor = new SixBitAsciiCompressor();
6161
```
6262

6363
#### Defining your custom character set
@@ -67,7 +67,7 @@ If you need a custom character set, use constructors with parameter `supportedCh
6767
```java
6868
// Follows ASCII character ordering.
6969
byte[] myCustom4BitCharset = {'!', '"', '#', '$', '%', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '@'};
70-
AsciiCompressor compressor = new FourBitAsciiCompressor(myCustom4BitCharset);
70+
var compressor = new FourBitAsciiCompressor(myCustom4BitCharset);
7171
```
7272
**Important:** The order in which you list characters in this array matters, as it defines the lexicographic
7373
order the binary search will follow. It's good practice to define your custom charset in standard ASCII order, like the example above.

0 commit comments

Comments
 (0)