From 00fdbb1fbe248f8d3981bede0d3a20a965b9a239 Mon Sep 17 00:00:00 2001 From: Alberto Benegiamo Date: Fri, 20 Jan 2023 10:42:52 +0100 Subject: [PATCH] Fix `validators.Contains` documentation typo (#2507) --- snow/validators/manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snow/validators/manager.go b/snow/validators/manager.go index c9bdf18e910f..91391aaa2088 100644 --- a/snow/validators/manager.go +++ b/snow/validators/manager.go @@ -135,7 +135,7 @@ func RemoveWeight(m Manager, subnetID ids.ID, nodeID ids.NodeID, weight uint64) return vdrs.RemoveWeight(nodeID, weight) } -// AddWeight is a helper that fetches the validator set of [subnetID] from [m] +// Contains is a helper that fetches the validator set of [subnetID] from [m] // and returns if the validator set contains [nodeID]. If [m] does not contain a // validator set for [subnetID], false is returned. func Contains(m Manager, subnetID ids.ID, nodeID ids.NodeID) bool {