commit 4b4292a8f78eec4271213982fdddaf1c479dfe96
Author: Laslo Hunhold <[email protected]>
AuthorDate: Fri Oct 7 12:40:51 2022 +0200
Commit: Laslo Hunhold <[email protected]>
CommitDate: Fri Oct 7 12:40:51 2022 +0200
Remove superfluous printf-parameter from the example
This fortunately has no functional effect, it's just redundant.
Thanks to Kartik Agaram for reporting this!
Signed-off-by: Laslo Hunhold <[email protected]>
diff --git a/man/template/next_break.sh b/man/template/next_break.sh
index fee6187..39a0583 100644
--- a/man/template/next_break.sh
+++ b/man/template/next_break.sh
@@ -82,7 +82,7 @@ main(void)
printf("${REALTYPE}s in NUL-delimited input:\\\\n");
for (off = 0; s[off] != '\\\\0'; off += ret) {
ret = grapheme_next_${TYPE}_break_utf8(s + off, SIZE_MAX);
- printf("%2zu bytes | %.*s\\\\n", ret, (int)ret, s + off, ret);
+ printf("%2zu bytes | %.*s\\\\n", ret, (int)ret, s + off);
}
printf("\\\\n");
@@ -91,7 +91,7 @@ main(void)
printf("${REALTYPE}s in input delimited to %zu bytes:\\\\n", len);
for (off = 0; off < len; off += ret) {
ret = grapheme_next_${TYPE}_break_utf8(s + off, len - off);
- printf("%2zu bytes | %.*s\\\\n", ret, (int)ret, s + off, ret);
+ printf("%2zu bytes | %.*s\\\\n", ret, (int)ret, s + off);
}
return 0;