Skip to content

Commit 2bda9e1

Browse files
authored
[docs][clang-tidy] Correct StrictMode example in modernize-use-std-print (#108805)
Fix #101397.
1 parent a0d00c9 commit 2bda9e1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang-tools-extra/docs/clang-tidy/checks/modernize/use-std-format.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Options
4343
extern std::string strprintf(const char *format, ...);
4444
int i = -42;
4545
unsigned int u = 0xffffffff;
46-
return strprintf("%d %u\n", i, u);
46+
return strprintf("%u %d\n", i, u);
4747
4848
would be converted to
4949

clang-tools-extra/docs/clang-tidy/checks/modernize/use-std-print.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Options
103103

104104
int i = -42;
105105
unsigned int u = 0xffffffff;
106-
printf("%d %u\n", i, u);
106+
printf("%u %d\n", i, u);
107107

108108
would be converted to:
109109

0 commit comments

Comments
 (0)