Skip to content

Commit 7783ff4

Browse files
committed
Add space ahead of curly brackets in index
For macro invocations, struct expressions, and struct patterns, we had shown the opening curly brace without a space in front of it. This can make it visually difficult to distinguish from an opening parenthesis. Using the common Rust style of putting a space in front helps with that, so let's do that here.
1 parent 4946e96 commit 7783ff4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/syntax-index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,12 @@ This appendix provides an index of tokens and common forms with links to where t
146146

147147
## Macros
148148

149-
| Syntax | Usage |
150-
|-------------------------------------------|-------|
151-
| `ident!(…)`<br>`ident!{…}`<br>`ident![…]` | [macro invocations] |
152-
| `$ident` | [macro metavariable] |
153-
| `$ident:kind` | [macro matcher fragment specifier] |
154-
| `$(…)…` | [macro repetition] |
149+
| Syntax | Usage |
150+
|--------------------------------------------|-------|
151+
| `ident!(…)`<br>`ident! {…}`<br>`ident![…]` | [macro invocations] |
152+
| `$ident` | [macro metavariable] |
153+
| `$ident:kind` | [macro matcher fragment specifier] |
154+
| `$(…)…` | [macro repetition] |
155155

156156
## Attributes
157157

@@ -182,7 +182,7 @@ This appendix provides an index of tokens and common forms with links to where t
182182
| `expr.0`, `expr.1`, … | [tuple indexing expressions] |
183183
| `expr.ident` | [field access expressions] |
184184
| `{…}` | [block expressions] |
185-
| `Type{…}` | [struct expressions] |
185+
| `Type {…}` | [struct expressions] |
186186
| `Type(…)` | [tuple struct constructors] |
187187
| `[…]` | [array expressions] |
188188
| `[expr; len]` | [repeat array expressions] |
@@ -261,7 +261,7 @@ This appendix provides an index of tokens and common forms with links to where t
261261
| `..` | [rest patterns] |
262262
| `a..`, `..b`, `a..b`, `a..=b`, `..=b` | [range patterns] |
263263
| `&pattern`<br>`&mut pattern` | [reference patterns] |
264-
| `path{…}` | [struct patterns] |
264+
| `path {…}` | [struct patterns] |
265265
| `path(…)` | [tuple struct patterns] |
266266
| `(pattern, …)` | [tuple patterns] |
267267
| `(pattern)` | [grouped patterns] |

0 commit comments

Comments
 (0)