Skip to content

Commit 9b79976

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 556ff28 commit 9b79976

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
@@ -326,7 +326,7 @@ The following are restrictions for valid `use` declarations:
326326
* `use {self};` is an error; there must be a leading segment when using `self`.
327327
* As with any item definition, `use` imports cannot create duplicate bindings of the same name in the same namespace in a module or block.
328328
* `use` paths with `$crate` are not allowed in a [`macro_rules`] expansion.
329-
* `use` paths cannot refer to enum variants through a [type alias]. Example:
329+
* `use` paths cannot refer to enum variants through a [type alias]. For example:
330330
```rust,compile_fail
331331
enum MyEnum {
332332
MyVariant
@@ -344,7 +344,7 @@ The following are restrictions for valid `use` declarations:
344344
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.
345345

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

349349
```rust
350350
mod foo {
@@ -364,7 +364,7 @@ fn main() {
364364
}
365365
```
366366

367-
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:
367+
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:
368368

369369
```rust
370370
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)