From 50b9713a67990c18e98610d2a139c9f93e2a6ce5 Mon Sep 17 00:00:00 2001 From: Vladimir Kononov Date: Tue, 2 Aug 2022 17:48:07 +0300 Subject: [PATCH 1/2] Fix typo --- ring.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ring.go b/ring.go index 0aef9ab..5d3e2ae 100644 --- a/ring.go +++ b/ring.go @@ -63,7 +63,7 @@ type Ring struct { // minWeight holds minimum weight of item on the ring. // It is protected by r.mu mutex. minWeight float64 - // maxWeight holds maximume weight of item on the ring. + // maxWeight holds maximum weight of item on the ring. // It is protected by r.mu mutex. maxWeight float64 From d840c13c238df79d297c620de183e1203277a277 Mon Sep 17 00:00:00 2001 From: Vladimir Kononov Date: Wed, 10 Aug 2022 17:49:58 +0300 Subject: [PATCH 2/2] Fix typo --- point.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/point.go b/point.go index 8daaf76..c484590 100644 --- a/point.go +++ b/point.go @@ -3,8 +3,8 @@ package hashring import "github.com/gobwas/avl" // point represents a point on the ring. -// To handle collisions properly it may change it's value to another one, -// increasing it's generation by one. +// To handle collisions properly it may change its value to another one, +// increasing its generation by one. type point struct { // bucket is a bucket where point belongs to. bucket *bucket