all: rename variables with lowercase-l/uppercase-I
See http://go/no-ell Signed-off-by: Alex Chan <alexc@tailscale.com> Updates #cleanup Change-Id: I8c976b51ce7a60f06315048b1920516129cc1d5d
This commit is contained in:
+5
-5
@@ -167,11 +167,11 @@ func (k DiscoPublic) String() string {
|
||||
}
|
||||
|
||||
// Compare returns an integer comparing DiscoPublic k and l lexicographically.
|
||||
// The result will be 0 if k == l, -1 if k < l, and +1 if k > l. This is useful
|
||||
// for situations requiring only one node in a pair to perform some operation,
|
||||
// e.g. probing UDP path lifetime.
|
||||
func (k DiscoPublic) Compare(l DiscoPublic) int {
|
||||
return bytes.Compare(k.k[:], l.k[:])
|
||||
// The result will be 0 if k == other, -1 if k < other, and +1 if k > other.
|
||||
// This is useful for situations requiring only one node in a pair to perform
|
||||
// some operation, e.g. probing UDP path lifetime.
|
||||
func (k DiscoPublic) Compare(other DiscoPublic) int {
|
||||
return bytes.Compare(k.k[:], other.k[:])
|
||||
}
|
||||
|
||||
// AppendText implements encoding.TextAppender.
|
||||
|
||||
Reference in New Issue
Block a user