From e395026aba4d0739ec06264dabb97a614ec8d0dc Mon Sep 17 00:00:00 2001 From: Oliver Scherer Date: Fri, 28 Dec 2018 12:23:23 +0100 Subject: [PATCH] Fix typo in src/librustc/ty/layout.rs Co-Authored-By: wildarch --- src/librustc/ty/layout.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/ty/layout.rs b/src/librustc/ty/layout.rs index a67aa0e41b37..c05e0aaf3baf 100644 --- a/src/librustc/ty/layout.rs +++ b/src/librustc/ty/layout.rs @@ -1888,7 +1888,7 @@ impl<'a, 'tcx, C> TyLayoutMethods<'tcx, C> for Ty<'tcx> _ => { let mut data_variant = match this.variants { Variants::NicheFilling { dataful_variant, .. } => { - // Only the niche itthis is always initialized, + // Only the niche in this is always initialized, // so only check for a pointer at its offset. // // If the niche is a pointer, it's either valid