Skip to content

Commit 639100e

Browse files
committed
Rewrite the paths in expressions intro
This is just cleanup for clarity, and being more direct on what exactly they are.
1 parent 66ea245 commit 639100e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/paths.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ PathIdentSegment ->
5353
```
5454

5555
r[paths.expr.intro]
56-
Paths in expressions allow for paths with generic arguments to be specified. They are used in various places in [expressions] and [patterns].
56+
Paths in expressions are used to refer to local variables and items, and they are also used in [patterns][patterns.path]. Optional [generic arguments] can be specified to provide concrete values for generic parameters.
5757

5858
r[paths.expr.turbofish]
5959
The `::` token is required before the opening `<` for generic arguments to avoid ambiguity with the less-than operator. This is colloquially known as "turbofish" syntax.
@@ -419,13 +419,12 @@ mod without { // crate::without
419419
[`use`]: items/use-declarations.md
420420
[attributes]: attributes.md
421421
[enumeration]: items/enumerations.md
422-
[expressions]: expressions.md
423422
[extern prelude]: names/preludes.md#extern-prelude
423+
[generic arguments]: generics.arguments
424424
[implementation]: items/implementations.md
425425
[macro transcribers]: macros-by-example.md
426426
[macros]: macros.md
427427
[mbe]: macros-by-example.md
428-
[patterns]: patterns.md
429428
[struct]: items/structs.md
430429
[trait implementations]: items/implementations.md#trait-implementations
431430
[trait]: items/traits.md

0 commit comments

Comments
 (0)