Skip to content

Commit e4ca961

Browse files
committed
Typo
1 parent 2bfc2c4 commit e4ca961

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_codegen_ssa/src/mir

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_ssa/src/mir/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ pub fn codegen_mir<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
294294
//
295295
// Taken from Cargo:
296296
// https://github.com/rust-lang/cargo/blob/2ce45605d9db521b5fd6c1211ce8de6055fdb24e/src/cargo/util/mod.rs#L88-L95
297-
pub fn human_readable_bytes(bytes: u64) -> (u32, &'static str) {
297+
pub fn human_readable_bytes(bytes: u64) -> (f32, &'static str) {
298298
static UNITS: [&str; 7] = ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB"];
299299
let bytes = bytes as f32;
300300
let i = ((bytes.log2() / 10.0) as usize).min(UNITS.len() - 1);

0 commit comments

Comments
 (0)