summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2026-01-28 12:52:42 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2026-01-28 12:52:42 +0100
commitd74b34214165c77db48a845c9a9c927231b81892 (patch)
treeb18f85bc92b5e19a0a2aa9ef985d2c77b1844eb2
parent37aeed359a6f54b8c9ff1565b7742d8495846e0b (diff)
Fix typo in documentation of fl_utf8len1().
-rw-r--r--src/fl_utf8.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fl_utf8.cxx b/src/fl_utf8.cxx
index dd59acc10..157f1dc54 100644
--- a/src/fl_utf8.cxx
+++ b/src/fl_utf8.cxx
@@ -122,8 +122,7 @@ int fl_utf8len(char c)
/**
- Returns the byte length of the UTF-8 sequence with first byte \p c,
- or -1 if \p c is not valid.
+ Returns the byte length of the UTF-8 sequence with first byte \p c, or 1 if \p c is not valid.
This function can be used to scan faulty UTF-8 sequences, albeit
ignoring invalid codes.