Skip to content

Commit 4e37cea

Browse files
committed
Move include! macro note to the bottom
This note does not belong to the input.shebang.inner-attribute rule. For lack of a better place, I'm sticking it at the bottom.
1 parent 74c4550 commit 4e37cea

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/input-format.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,16 @@ fn main() {
5454
r[input.shebang.inner-attribute]
5555
As an exception, if the `#!` characters are followed (ignoring intervening [comments] or [whitespace]) by a `[` token, nothing is removed. This prevents an [inner attribute] at the start of a source file being removed.
5656

57-
> [!NOTE]
58-
> The standard library [`include!`] macro applies byte order mark removal and CRLF normalization to the file it reads.
59-
> Moreover, it applies shebang removal if invoked in an item context (as opposed to expression or statement contexts).
60-
> The [`include_str!`] and [`include_bytes!`] macros do not perform any of these preprocessing steps.
61-
6257
r[input.tokenization]
6358
## Tokenization
6459

6560
The resulting sequence of characters is then converted into tokens as described in the remainder of this chapter.
6661

62+
> [!NOTE]
63+
> The standard library [`include!`] macro applies byte order mark removal and CRLF normalization to the file it reads.
64+
> Moreover, it applies shebang removal if invoked in an item context (as opposed to expression or statement contexts).
65+
> The [`include_str!`] and [`include_bytes!`] macros do not perform any of these preprocessing steps.
66+
6767
[inner attribute]: attributes.md
6868
[BYTE ORDER MARK]: https://en.wikipedia.org/wiki/Byte_order_mark#UTF-8
6969
[comments]: comments.md

0 commit comments

Comments
 (0)