Skip to content

Commit a9d1db3

Browse files
committed
style-guide: Avoid hyphenating "semicolon"
1 parent 3e2449c commit a9d1db3

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/doc/style-guide/src/items.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ union Foo {
140140

141141
Put the whole struct on one line if possible. Types in the parentheses should be
142142
separated by a comma and space with no trailing comma. No spaces around the
143-
parentheses or semi-colon:
143+
parentheses or semicolon:
144144

145145
```rust
146146
pub struct Foo(String, u8);
@@ -231,7 +231,7 @@ impl Bar
231231

232232
`extern crate foo;`
233233

234-
Use spaces around keywords, no spaces around the semi-colon.
234+
Use spaces around keywords, no spaces around the semicolon.
235235

236236

237237
### Modules
@@ -246,7 +246,7 @@ mod foo;
246246
```
247247

248248
Use spaces around keywords and before the opening brace, no spaces around the
249-
semi-colon.
249+
semicolon.
250250

251251
### macro\_rules!
252252

src/doc/style-guide/src/statements.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
### Let statements
22

33
There should be spaces after the `:` and on both sides of the `=` (if they are
4-
present). No space before the semi-colon.
4+
present). No space before the semicolon.
55

66
```rust
77
// A comment.
@@ -194,7 +194,7 @@ used to determine whether a let-else statement is *short*.
194194
### Macros in statement position
195195

196196
A macro use in statement position should use parentheses or square brackets as
197-
delimiters and should be terminated with a semi-colon. There should be no spaces
197+
delimiters and should be terminated with a semicolon. There should be no spaces
198198
between the name, `!`, the delimiters, or the `;`.
199199

200200
```rust
@@ -205,13 +205,13 @@ a_macro!(...);
205205

206206
### Expressions in statement position
207207

208-
There should be no space between the expression and the semi-colon.
208+
There should be no space between the expression and the semicolon.
209209

210210
```
211211
<expr>;
212212
```
213213

214-
All expressions in statement position should be terminated with a semi-colon,
214+
All expressions in statement position should be terminated with a semicolon,
215215
unless they end with a block or are used as the value for a block.
216216

217217
E.g.,
@@ -229,7 +229,7 @@ loop {
229229
}
230230
```
231231

232-
Use a semi-colon where an expression has void type, even if it could be
232+
Use a semicolon where an expression has void type, even if it could be
233233
propagated. E.g.,
234234

235235
```rust

0 commit comments

Comments
 (0)