Skip to content

Commit 8140856

Browse files
authored
Rollup merge of #114919 - joshtriplett:style-guide-macros, r=calebcartwright
style-guide: Add guidance for defining formatting for specific macros
2 parents eb56940 + 69f38f6 commit 8140856

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/doc/style-guide/src/expressions.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,12 @@ constructs. For example, a macro use `foo!(a, b, c)` can be parsed like a
400400
function call (ignoring the `!`), so format it using the rules for function
401401
calls.
402402

403-
### Special case macros
403+
The style guide defines specific formatting for particular macros in the
404+
language or standard library. The style guide does not define formatting for
405+
any third-party macros, even if similar to those in the language or standard
406+
library.
407+
408+
### Format string macros
404409

405410
For macros which take a format string, if all other arguments are *small*,
406411
format the arguments before the format string on a single line if they fit, and

0 commit comments

Comments
 (0)