Skip to content

Commit 82a14ea

Browse files
Rephrase confusing wording
1 parent 9b0c6bd commit 82a14ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hir.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ sorts of identifiers in active use:
8585
of items that is maintained per crate).
8686
- [`LocalDefId`], which is basically a `DefId` but for the local crate.
8787
- They are the prefered way to encode that only a local `DefId` is
88-
expected, because it prevents [`DefId`] from upstream crates from
89-
being passed instead and causing bugs at compile time.
88+
expected, because it enforces at compile time that not any [`DefId`],
89+
that potentially comes from an upstream crate, can be passed.
9090
- They can still be transformed back into `DefId`s as needed by using
9191
the [`LocalDefId::to_def_id`][to_def_id] method.
9292
- [`HirId`], which combines the index of a particular item with an

0 commit comments

Comments
 (0)