Skip to content

Commit

Permalink
[docs][clang-tidy] Correct StrictMode example in modernize-use-std-pr…
Browse files Browse the repository at this point in the history
…int (#108805)

Fix #101397.
  • Loading branch information
MainakSil authored Sep 17, 2024
1 parent a0d00c9 commit 2bda9e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Options
extern std::string strprintf(const char *format, ...);
int i = -42;
unsigned int u = 0xffffffff;
return strprintf("%d %u\n", i, u);
return strprintf("%u %d\n", i, u);
would be converted to

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Options

int i = -42;
unsigned int u = 0xffffffff;
printf("%d %u\n", i, u);
printf("%u %d\n", i, u);

would be converted to:

Expand Down

0 comments on commit 2bda9e1

Please sign in to comment.