Skip to content

Commit 8ee58b2

Browse files
committed
Typo
1 parent c9b3df6 commit 8ee58b2

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ pub fn codegen_mir<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
284284
//
285285
// Taken from Cargo:
286286
// https://github.com/rust-lang/cargo/blob/2ce45605d9db521b5fd6c1211ce8de6055fdb24e/src/cargo/util/mod.rs#L88-L95
287-
pub fn human_readable_bytes(bytes: u64) -> (u32, &'static str) {
287+
pub fn human_readable_bytes(bytes: u64) -> (f32, &'static str) {
288288
static UNITS: [&str; 7] = ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB"];
289289
let bytes = bytes as f32;
290290
let i = ((bytes.log2() / 10.0) as usize).min(UNITS.len() - 1);

0 commit comments

Comments
 (0)