From 939abbfea7aca43edd4b2cf033b3986f2118ea8f Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Fri, 21 Jun 2013 08:53:24 +0000 Subject: [PATCH] Re-arrange some comments --- labels.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/labels.go b/labels.go index 23de286a..ed4d7ea9 100644 --- a/labels.go +++ b/labels.go @@ -50,7 +50,7 @@ func CompareLabels(s1, s2 string) (n int) { l1 := Split(s1) l2 := Split(s2) - // the first check + // the first check: root label if l1 == nil || l2 == nil { return } @@ -59,7 +59,8 @@ func CompareLabels(s1, s2 string) (n int) { i1 := len(l1) - 2 // start j2 := len(l2) - 1 i2 := len(l2) - 2 - // the second check can be done here, before we fall through into the for-loop below + // the second check can be done here: last/only label + // before we fall through into the for-loop below if s1[l1[j1]:] == s2[l2[j2]:] { n++ } else {