From a966696d9d25f31d849948eeb2aacf27e98e4b18 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Thu, 9 Nov 2023 09:18:32 -0800 Subject: [PATCH] fix used_chars_16 error message --- src/Text.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Text.hh b/src/Text.hh index 6940bb24..bff11181 100644 --- a/src/Text.hh +++ b/src/Text.hh @@ -461,7 +461,7 @@ struct pstring { size_t used_chars_16() const { if (Bytes & 1) { - throw std::logic_error("used_bytes_16 must not be called on an odd-length pstring"); + throw std::logic_error("used_chars_16 must not be called on an odd-length pstring"); } for (size_t z = 0; z < Bytes; z += 2) { if (!this->data[z] && !this->data[z + 1]) {