From 1cacac09edf46c6db7c2ebd58da8b3b44b3e1693 Mon Sep 17 00:00:00 2001 From: Fabian Giesen Date: Thu, 1 Jul 2021 17:08:20 -0700 Subject: [PATCH] stb_textedit: Docs fix. Fixes issue #1041. --- stb_textedit.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stb_textedit.h b/stb_textedit.h index cd38a25..41afb9e 100644 --- a/stb_textedit.h +++ b/stb_textedit.h @@ -87,8 +87,8 @@ // moderate sizes. The undo system does no memory allocations, so // it grows STB_TexteditState by the worst-case storage which is (in bytes): // -// [4 + 3 * sizeof(STB_TEXTEDIT_POSITIONTYPE)] * STB_TEXTEDIT_UNDOSTATE_COUNT -// + sizeof(STB_TEXTEDIT_CHARTYPE) * STB_TEXTEDIT_UNDOCHAR_COUNT +// [4 + 3 * sizeof(STB_TEXTEDIT_POSITIONTYPE)] * STB_TEXTEDIT_UNDOSTATECOUNT +// + sizeof(STB_TEXTEDIT_CHARTYPE) * STB_TEXTEDIT_UNDOCHARCOUNT // // // Implementation mode: