Skip to content

Commit

Permalink
Fix validators.Contains documentation typo (ava-labs#2507)
Browse files Browse the repository at this point in the history
  • Loading branch information
abi87 authored Jan 20, 2023
1 parent 643e197 commit 00fdbb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snow/validators/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 00fdbb1

Please sign in to comment.