From f899ff2475eb7c084cef35bd9aeeb1cc0b982980 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Cab=C3=A9?= Date: Thu, 12 Jun 2025 14:32:05 +0200 Subject: [PATCH] include: util: fix doxygen comment for utf8_trunc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Properly format code block Signed-off-by: Benjamin Cabé --- include/zephyr/sys/util.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/zephyr/sys/util.h b/include/zephyr/sys/util.h index 150bad8737e..0ea42ed3153 100644 --- a/include/zephyr/sys/util.h +++ b/include/zephyr/sys/util.h @@ -652,8 +652,9 @@ static inline int64_t sign_extend_64(uint64_t value, uint8_t index) * truncated (by setting the NULL terminator) earlier by other means, that * the string ends with a properly formatted UTF-8 character (1-4 bytes). * - * @htmlonly * Example: + * + * @code{.c} * char test_str[] = "€€€"; * char trunc_utf8[8]; * @@ -663,7 +664,7 @@ static inline int64_t sign_extend_64(uint64_t value, uint8_t index) * printf("Bad : %s\n", trunc_utf8); // €€� * utf8_trunc(trunc_utf8); * printf("Truncated: %s\n", trunc_utf8); // €€ - * @endhtmlonly + * @endcode * * @param utf8_str NULL-terminated string *