Skip to content

Commit 5d62492

Browse files
fix typo
Co-authored-by: BlackHoleFox <[email protected]>
1 parent 1333206 commit 5d62492

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_typeck/src/check/check.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ fn check_union_fields(tcx: TyCtxt<'_>, span: Span, item_def_id: LocalDefId) -> b
382382
fn check_static_inhabited<'tcx>(tcx: TyCtxt<'tcx>, def_id: LocalDefId, span: Span) {
383383
// Make sure statics are inhabited.
384384
// Other parts of the compiler assume that there are no uninhabited places. In principle it
385-
// would be enugh to check this for `extern` statics, as statics with an initializer will
385+
// would be enough to check this for `extern` statics, as statics with an initializer will
386386
// have UB during initialization if they are uninhabited, but there also seems to be no good
387387
// reason to allow any statics to be uninhabited.
388388
let ty = tcx.type_of(def_id);

0 commit comments

Comments
 (0)