Skip to content

Commit 27c2a79

Browse files
committed
Incorporate documentation tweaks suggested by @5chmidti
1 parent 385bafd commit 27c2a79

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ Macros starting with ``PRI`` and ``__PRI`` from `<inttypes.h>` are
3131
expanded, escaping is handled and adjacent strings are concatenated to form
3232
a single ``StringLiteral`` before the format string is converted. Use of
3333
any other macros in the format string will cause a warning message to be
34-
emitted and no conversion will be performed. The resultant converted format
35-
string will always be a single string literal.
34+
emitted and no conversion will be performed. The converted format string
35+
will always be a single string literal.
3636

3737
The check doesn't do a bad job, but it's not perfect. In particular:
3838

@@ -42,9 +42,9 @@ The check doesn't do a bad job, but it's not perfect. In particular:
4242

4343
- At the point that the check runs, the AST contains a single
4444
``StringLiteral`` for the format string where escapes have been expanded.
45-
The check tries to put the escapes back, they may not be exactly as they
46-
were written (e.g. ``"\x41\x0a"`` will become ``"A\n"`` and ``"ab" "cd"``
47-
will become ``"abcd"``.)
45+
The check tries to reconstruct escapes sequences, they may not be the
46+
same as they were written (e.g. ``"\x41\x0a"`` will become ``"A\n"`` and
47+
``"ab" "cd"`` will become ``"abcd"``.)
4848

4949
- It supports field widths, precision, positional arguments, leading zeros,
5050
leading ``+``, alignment and alternative forms.

0 commit comments

Comments
 (0)