From 9c9f4be9df863e529b09f195f013710e676fb5c1 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Tue, 3 Nov 2015 06:44:45 -0500 Subject: [PATCH] correct typos --- src/librustc_trans/trans/mir/mod.rs | 2 +- src/librustc_trans/trans/mir/rvalue.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc_trans/trans/mir/mod.rs b/src/librustc_trans/trans/mir/mod.rs index 353ac2e5f79..fb652c6dc7e 100644 --- a/src/librustc_trans/trans/mir/mod.rs +++ b/src/librustc_trans/trans/mir/mod.rs @@ -159,7 +159,7 @@ fn arg_value_refs<'bcx, 'tcx>(bcx: Block<'bcx, 'tcx>, llarg } else if common::type_is_fat_ptr(tcx, arg_ty) { // we pass fat pointers as two words, but we want to - // represent them internally as a pointer two two words, + // represent them internally as a pointer to two words, // so make an alloca to store them in. let lldata = llvm::get_param(fcx.llfn, idx); let llextra = llvm::get_param(fcx.llfn, idx + 1); diff --git a/src/librustc_trans/trans/mir/rvalue.rs b/src/librustc_trans/trans/mir/rvalue.rs index 7c0912592b6..dc73c60c9a0 100644 --- a/src/librustc_trans/trans/mir/rvalue.rs +++ b/src/librustc_trans/trans/mir/rvalue.rs @@ -172,7 +172,7 @@ impl<'bcx, 'tcx> MirContext<'bcx, 'tcx> { // // Note that this is currently duplicated with src/libcore/ops.rs // which does the same thing, and it would be nice to perhaps unify - // these two implementations on day! Also note that we call `fmod` + // these two implementations one day! Also note that we call `fmod` // for both 32 and 64-bit floats because if we emit any FRem // instruction at all then LLVM is capable of optimizing it into a // 32-bit FRem (which we're trying to avoid).