Skip to content

Commit ec2ba63

Browse files
committed
Replace "Example:" with "For example:"
It's a bit more common throughout the Reference, including even within this PR, to say "For example:" rather than just "Example:", and it's more grammatically regular, so let's fix up the ones that went the other way in this branch.
1 parent 8d065a7 commit ec2ba63

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/items/use-declarations.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ The following are restrictions for valid `use` declarations.
323323
* `use {self};` is an error; there must be a leading segment when using `self`.
324324
* As with any item definition, `use` imports cannot create duplicate bindings of the same name in the same namespace in a module or block.
325325
* `use` paths with `$crate` are not allowed in a [`macro_rules`] expansion.
326-
* `use` paths cannot refer to enum variants through a [type alias]. Example:
326+
* `use` paths cannot refer to enum variants through a [type alias]. For example:
327327
```rust,compile_fail
328328
enum MyEnum {
329329
MyVariant
@@ -341,7 +341,7 @@ The following are restrictions for valid `use` declarations.
341341
Some situations are an error when there is an ambiguity as to which name a `use` declaration refers. This happens when there are two name candidates that do not resolve to the same entity.
342342

343343
Glob imports are allowed to import conflicting names in the same namespace as long as the name is not used.
344-
Example:
344+
For example:
345345

346346
```rust
347347
mod foo {
@@ -361,7 +361,7 @@ fn main() {
361361
}
362362
```
363363

364-
Multiple glob imports are allowed to import the same name, and that name is allowed to be used, if the imports are of the same item (following re-exports). The visibility of the name is the maximum visibility of the imports. Example:
364+
Multiple glob imports are allowed to import the same name, and that name is allowed to be used, if the imports are of the same item (following re-exports). The visibility of the name is the maximum visibility of the imports. For example:
365365

366366
```rust
367367
mod foo {

src/paths.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ x::y::z;
2323
>    [IDENTIFIER] | `super` | `self` | `crate` | `$crate`
2424
2525
Simple paths are used in [visibility] markers, [attributes], [macros][mbe], and [`use`] items.
26-
Examples:
26+
For example:
2727

2828
```rust
2929
use std::io::{self, Write};

0 commit comments

Comments
 (0)