Skip to content

Commit a4f323d

Browse files
committed
Add semicolons for items needing them in index
On the branch, in the index, in the table for items, we had written `mod ident;` and `use path;` but we hadn't similarly indicated a trailing semicolon for type aliases, const items, and static items. Let's be consistent and indicate the trailing semicolon for those.
1 parent 4d560b5 commit a4f323d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/syntax-index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,14 +209,14 @@ This appendix provides an index of tokens and common forms with links to where t
209209
| `mod ident;`<br>`mod ident {…}` | [modules] |
210210
| `use path;` | [use declarations] |
211211
| `fn ident(…) {…}` | [functions] |
212-
| `type Type = Type` | [type aliases] |
212+
| `type Type = Type;` | [type aliases] |
213213
| `struct ident {…}` | [structs] |
214214
| `enum ident {…}` | [enumerations] |
215215
| `union ident {…}` | [unions] |
216216
| `trait ident {…}` | [traits] |
217217
| `impl Type {…}`<br>`impl Type for Trait {…}` | [implementations] |
218-
| `const ident = expr` | [constant items] |
219-
| `static ident = expr` | [static items] |
218+
| `const ident = expr;` | [constant items] |
219+
| `static ident = expr;` | [static items] |
220220
| `extern "C" {…}` | [external blocks] |
221221
| `fn ident<…>(…) …`<br>`struct ident<…> {…}`<br>`enum ident<…> {…}`<br>`impl<…> Type<…> {…}` | [generic definitions] |
222222

0 commit comments

Comments
 (0)