Skip to content

Commit 9216e4f

Browse files
authored
Merge pull request #1742 from solson/patch-3
Block quote the entire style guideline example.
2 parents 902e54c + 5962091 commit 9216e4f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

text/1607-style-rfcs.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,15 +192,17 @@ Guidelines may include more than one acceptable rule, but should offer
192192
guidance for when to use each rule (which should be formal enough to be used by
193193
a tool).
194194

195-
For example: "a struct literal must be formatted either on a single line (with
195+
For example:
196+
197+
> A struct literal must be formatted either on a single line (with
196198
spaces after the opening brace and before the closing brace, and with fields
197199
separated by commas and spaces), or on multiple lines (with one field per line
198200
and newlines after the opening brace and before the closing brace). The former
199201
approach should be used for short struct literals, the latter for longer struct
200202
literals. For tools, the first approach should be used when the width of the
201203
fields (excluding commas and braces) is 16 characters. E.g.,
202204

203-
```
205+
> ```rust
204206
let x = Foo { a: 42, b: 34 };
205207
let y = Foo {
206208
a: 42,

0 commit comments

Comments
 (0)