From: Miod Vallat Date: Fri, 27 Jun 2025 12:59:41 +0000 (+0200) Subject: Add a few comments. X-Git-Tag: rec-5.3.0-alpha2~40^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F15727%2Fhead;p=thirdparty%2Fpdns.git Add a few comments. Signed-off-by: Miod Vallat --- diff --git a/pdns/misc.hh b/pdns/misc.hh index b6c3f44e4e..f70ba81c46 100644 --- a/pdns/misc.hh +++ b/pdns/misc.hh @@ -386,6 +386,9 @@ inline int pdns_ilexicographical_compare_three_way(std::string_view a, std::stri aPtr++; bPtr++; } + // At this point, one of the strings has been completely processed. + // Either both have the same length, and they are equal, or one of them + // is larger, and compares as higher. if (aPtr == aEptr) { if (bPtr != bEptr) { return -1; // a < b