Skip to content

Commit a29b0ae

Browse files
committed
fix some typos
1 parent 963d624 commit a29b0ae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/traits/overlap.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Overlap checks
22

33
As part of checking items (specifically: structs, enums, traits, unions),
4-
the compiler checks whether its impl blocks overlap, for example because they define the same functions.
4+
the compiler checks whether impl blocks overlap, for example because they define the same functions.
55
This is an example an overlap check.
66
The same overlap check is done when constructing a [specialization graph](./specialization.md).
7-
Here, traits implementations could overlap because of a conflicting blanket implementation overlapping with some specific implementation.
7+
Here, trait implementations could overlap, for example because of a conflicting blanket implementation overlapping with some specific implementation.
88

99
The overlap check always compares two impls.
10-
In the case of inherent impl blocks, this means that for small n,
11-
rustc quite literally compares each impl to each other impl block in an n^2 loop
10+
In the case of inherent impl blocks, this means that at least for small n,
11+
rustc quite literally compares each impl to each other impl block in an `n^2` loop
1212
(see `fn check_item` in coherence/inherent_impls_overlap.rs).
1313

1414
Overlapping is sometimes partially allowed:

0 commit comments

Comments
 (0)