commit 4b4292a8f78eec4271213982fdddaf1c479dfe96
parent ef608a20a5431e68922e787cfdd68d893497d16f
Author: Laslo Hunhold <dev@frign.de>
Date: Fri, 7 Oct 2022 12:40:51 +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 <dev@frign.de>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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;