gbranden pushed a commit to branch master
in repository groff.
commit f85882f05b4c3271838ce7778963c1e30b26f5a8
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Apr 2 09:55:34 2025 -0500
[libgroff]: Fix more stale comments.
---
src/libs/libgroff/string.cpp | 3 +--
src/libs/libgroff/symbol.cpp | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/libs/libgroff/string.cpp b/src/libs/libgroff/string.cpp
index 0e5596c54..d78b11f6d 100644
--- a/src/libs/libgroff/string.cpp
+++ b/src/libs/libgroff/string.cpp
@@ -359,8 +359,7 @@ size_t string::json_length() const
}
// Like `extract()`, but double-quote the string and escape characters
-// per JSON and emit nulls. This string is not null-terminated! Caller
-// MUST use .json_length().
+// per JSON and emit nulls. This string is not null-terminated!
const char *string::json_extract() const
{
const char *p = ptr;
diff --git a/src/libs/libgroff/symbol.cpp b/src/libs/libgroff/symbol.cpp
index f11556113..511b83373 100644
--- a/src/libs/libgroff/symbol.cpp
+++ b/src/libs/libgroff/symbol.cpp
@@ -200,8 +200,7 @@ size_t symbol::json_length() const
// Like `extract()`, but double-quote the string and escape characters
// per JSON. (Unlike groff's `string`, a `symbol` doesn't contain
// embedded null characters.) This string is not null-terminated!
-// Caller MUST use .json_length(). (The member variable backing us up
-// _is_ a null-terminated C string.)
+// (The member variable backing us up _is_ a null-terminated C string.)
const char *symbol::json_extract() const
{
const char *p = s;
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit