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 diff --git a/ring.go b/ring.go index d4c2cdf..38dc2b5 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