From b11c637dffb486bcf4a2b43c342216e5b28a2efb Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Fri, 27 Jun 2025 14:59:41 +0200 Subject: [PATCH] Add a few comments. Signed-off-by: Miod Vallat --- pdns/misc.hh | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.47.2