Skip to content

Commit

Permalink
Merge pull request #7 from phstudy/fix-readme-typo
Browse files Browse the repository at this point in the history
fix readme typo
  • Loading branch information
zfraa authored Jan 17, 2020
2 parents 4aa44e9 + 11c8ce7 commit a2f2692
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ of distinct values in very large and small data streams.
// You can also create sketches for estimating the number of unique byte
// sequences, integers, and longs.

HyperLogLogPlusPlus<String> hll = HyperLogLogPlusPlus.Builder().buildForStrings();
HyperLogLogPlusPlus<String> hll = new HyperLogLogPlusPlus.Builder().buildForStrings();

// You can also set a custom precision. The default normal and sparse precisions
// are 15 and 20, respectively.
HyperLogLogPlusPlus<String> hllCustomPrecision = HyperLogLogPlusPlus.Builder()
HyperLogLogPlusPlus<String> hllCustomPrecision = new HyperLogLogPlusPlus.Builder()
.normalPrecision(13).sparsePrecision(19).buildForStrings();
```

Expand All @@ -88,7 +88,7 @@ hll.merge(hll3);
### Extracting cardinality estimates

```java
// Return the estimate of the number of disinct values.
// Return the estimate of the number of distinct values.
long result = hll.result();
```

Expand Down

0 comments on commit a2f2692

Please sign in to comment.