Skip to content

Commit

Permalink
fix: bad comment
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenvechain committed Jun 4, 2024
1 parent 351cba2 commit de35fa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comm/communicator.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ func (c *Communicator) PeersStats() []*PeerStats {
return stats
}

// SameMajor returns true if the peer has the same major version
// sameMajor returns true if the peer has the same major version
func sameMajor(appVersion, peerName string) bool {
versionRegex := regexp.MustCompile(`\d+\.\d+\.\d+`)
if appVersion == "" || !versionRegex.MatchString(appVersion) {
Expand Down

0 comments on commit de35fa3

Please sign in to comment.