aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authornytpu <alex@nytpu.com>2021-05-31 15:56:23 -0600
committernytpu <alex@nytpu.com>2021-05-31 18:23:39 -0600
commitb3c80521cbb1ffc87cc5819f5a44d9cee9225fc2 (patch)
treee9f03b6f4cbd57a6d68067b464701f728d1babb9 /common.h
parentfix unfreed memory (diff)
downloaded-b3c80521cbb1ffc87cc5819f5a44d9cee9225fc2.tar.bz2
ed-b3c80521cbb1ffc87cc5819f5a44d9cee9225fc2.zip
clarify incorrect comments
Diffstat (limited to 'common.h')
-rw-r--r--common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/common.h b/common.h
index 4cfd805..6f51b18 100644
--- a/common.h
+++ b/common.h
@@ -29,8 +29,8 @@ typedef long RowNum;
struct Row {
RowNum idx; // Row number (zero-based)
- size_t size; // Size of row (including trailing \n\0)
- char *chars; // Row content -- MUST FREE
+ size_t size; // Size of row (excluding trailing \0)
+ char *chars; // Row content (no trailing \n) -- MUST FREE
};
// doubles as an editor state/editor config struct as well