From a6314f2ce6c6d30837087380fcca71eb018fd550 Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Sat, 22 Aug 2020 16:13:22 +0200 Subject: [PATCH] AK: Fix description of DistinctNumeric around operator bool --- AK/DistinctNumeric.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/DistinctNumeric.h b/AK/DistinctNumeric.h index 08b71471ab4..38775f95b25 100644 --- a/AK/DistinctNumeric.h +++ b/AK/DistinctNumeric.h @@ -41,7 +41,7 @@ namespace AK { * - No matter the values of these, `DistinctNumeric` always implements `==` and `!=`. * - If `Incr` is true, then `++a`, `a++`, `--a`, and `a--` are implemented. * - If `Cmp` is true, then `a>b`, `a=b`, and `a<=b` are implemented. - * - If `Bool` is true, then `!a`, `a&&b`, and `a||b` are implemented (through `operator bool()`. + * - If `Bool` is true, then `!a`, `a&&b`, and `a||b` are implemented (but not `operator bool()`, because of overzealous integer promotion rules). * - If `Flags` is true, then `~a`, `a&b`, `a|b`, `a^b`, `a&=b`, `a|=b`, and `a^=b` are implemented. * - If `Shift` is true, then `a<>b`, `a<<=b`, `a>>=b` are implemented. * - If `Arith` is true, then `a+b`, `a-b`, `+a`, `-a`, `a*b`, `a/b`, `a%b`, and the respective `a_=b` versions are implemented.