You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Taken from [a style team
discussion](rust-lang/style-team#212 (comment)).
Assumptions on my part:
- I don't need to specify the lack of trailing spaces after the code
fence / infostring
- We aren't specifying when to include the infostring (one idea being if
there is no shebang)
- Keep it simple and have a single example instead of showing allowed several
variations
Copy file name to clipboardExpand all lines: src/doc/style-guide/src/nightly.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,3 +5,29 @@ This chapter documents style and formatting for nightly-only syntax. The rest of
5
5
Style and formatting for nightly-only syntax should be removed from this chapter and integrated into the appropriate sections of the style guide at the time of stabilization.
6
6
7
7
There is no guarantee of the stability of this chapter in contrast to the rest of the style guide. Refer to the style team policy for nightly formatting procedure regarding breaking changes to this chapter.
8
+
9
+
### Frontmatter
10
+
11
+
*Location: Placed before comments and attributes in the [root](index.html).*
There should be no blank lines between the frontmatter and either the start of the file or a shebang.
18
+
There can be zero or one line between the frontmatter and any following content.
19
+
20
+
The frontmatter fences should use the minimum number of dashes necessary for the contained content (one more than the longest series of initial dashes in the
21
+
content, with a minimum of 3 to be recognized as frontmatter delimiters).
22
+
If an infostring is present after the opening fence, there should be one space separating them.
23
+
The frontmatter fence lines should not have trailing whitespace.
0 commit comments