Skip to content

Commit 9c9f4be

Browse files
committed
correct typos
1 parent 6a5b263 commit 9c9f4be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc_trans/trans/mir/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ fn arg_value_refs<'bcx, 'tcx>(bcx: Block<'bcx, 'tcx>,
159159
llarg
160160
} else if common::type_is_fat_ptr(tcx, arg_ty) {
161161
// we pass fat pointers as two words, but we want to
162-
// represent them internally as a pointer two two words,
162+
// represent them internally as a pointer to two words,
163163
// so make an alloca to store them in.
164164
let lldata = llvm::get_param(fcx.llfn, idx);
165165
let llextra = llvm::get_param(fcx.llfn, idx + 1);

src/librustc_trans/trans/mir/rvalue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ impl<'bcx, 'tcx> MirContext<'bcx, 'tcx> {
172172
//
173173
// Note that this is currently duplicated with src/libcore/ops.rs
174174
// which does the same thing, and it would be nice to perhaps unify
175-
// these two implementations on day! Also note that we call `fmod`
175+
// these two implementations one day! Also note that we call `fmod`
176176
// for both 32 and 64-bit floats because if we emit any FRem
177177
// instruction at all then LLVM is capable of optimizing it into a
178178
// 32-bit FRem (which we're trying to avoid).

0 commit comments

Comments
 (0)