Skip to content

Commit 947945d

Browse files
committed
Paths whitespace/link location cleanup.
1 parent b4a4ccb commit 947945d

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

src/paths.md

+10-12
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ a namespace qualifier (`::`). If a path consists of only one component, it may
55
refer to either an [item] or a [variable] in a local control
66
scope. If a path has multiple components, it refers to an item.
77

8-
[item]: items.html
9-
[variable]: variables.html
10-
118
Every item has a _canonical path_ within its crate, but the path naming an item
129
is only meaningful within a given crate. There is no global namespace across
1310
crates; an item's canonical path merely identifies it within the crate.
@@ -19,15 +16,11 @@ x;
1916
x::y::z;
2017
```
2118

22-
Path components are usually [identifiers], but they may
23-
also include angle-bracket-enclosed lists of type arguments. In
24-
[expression] context, the type argument list is given
25-
after a `::` namespace qualifier in order to disambiguate it from a
26-
relational expression involving the less-than symbol (`<`). In type
27-
expression context, the final namespace qualifier is omitted.
28-
29-
[identifiers]: identifiers.html
30-
[expression]: expressions.html
19+
Path components are usually [identifiers], but they may also include
20+
angle-bracket-enclosed lists of type arguments. In [expression] context, the
21+
type argument list is given after a `::` namespace qualifier in order to
22+
disambiguate it from a relational expression involving the less-than symbol
23+
(`<`). In type expression context, the final namespace qualifier is omitted.
3124

3225
Two examples of paths with type arguments:
3326

@@ -103,3 +96,8 @@ mod a {
10396
}
10497
# fn main() {}
10598
```
99+
100+
[item]: items.html
101+
[variable]: variables.html
102+
[identifiers]: identifiers.html
103+
[expression]: expressions.html

0 commit comments

Comments
 (0)