Skip to content

Commit 89f8ad4

Browse files
committed
Update README.md
1 parent 0d83453 commit 89f8ad4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/consistent-hashing/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ We define the consistent `n-choose-rk` replication as follows:
4343
3. when `n` increases by one, exactly one node in the chosen set will be changed with probability `k/(n+1)`.
4444

4545
For simplicity, nodes are represented by integers `0..n`.
46-
Given `k` independent consistent hash functions `h_i(n)` for a given key, the following algorithm will have the desired properties:
46+
Given `k` independent consistent hash functions `consistent_hash(key, k, n)` for a given `key`, the following algorithm will have the desired properties:
4747

4848
```
4949
fn consistent_choose_k<Key>(key: Key, k: usize, n: usize) -> Vec<usize> {

0 commit comments

Comments
 (0)