Skip to content

Commit b168e5f

Browse files
committed
codegen_llvm: fix spelling & grammatical errors
1 parent 0af7914 commit b168e5f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/librustc_codegen_llvm/abi.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ impl<'tcx> FnTypeExt<'tcx> for FnType<'tcx, Ty<'tcx>> {
336336
RustIntrinsic | PlatformIntrinsic |
337337
Rust | RustCall => Conv::C,
338338

339-
// It's the ABI's job to select this, not us.
339+
// It's the ABI's job to select this, not ours.
340340
System => bug!("system abi should be selected elsewhere"),
341341

342342
Stdcall => Conv::X86Stdcall,

src/librustc_codegen_llvm/base.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,8 @@ fn cast_shift_rhs<'ll, F, G>(op: hir::BinOpKind,
363363
if lhs_sz < rhs_sz {
364364
trunc(rhs, lhs_llty)
365365
} else if lhs_sz > rhs_sz {
366-
// FIXME (#1877: If shifting by negative
367-
// values becomes not undefined then this is wrong.
366+
// FIXME (#1877: If in the future shifting by negative
367+
// values is no longer undefined then this is wrong.
368368
zext(rhs, lhs_llty)
369369
} else {
370370
rhs

src/librustc_codegen_llvm/value.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ impl fmt::Debug for Value {
3434
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3535
f.write_str(&llvm::build_string(|s| unsafe {
3636
llvm::LLVMRustWriteValueToString(self, s);
37-
}).expect("nun-UTF8 value description from LLVM"))
37+
}).expect("non-UTF8 value description from LLVM"))
3838
}
3939
}

0 commit comments

Comments
 (0)