Fix typo in internal.rs · rust-lang/rust@b864821

File tree

1 file changed

lines changed

  • compiler/rustc_smir/src/rustc_internal

1 file changed

lines changed

Original file line numberDiff line numberDiff line change

@@ -54,7 +54,7 @@ fn ty_const<'tcx>(constant: &Const, tables: &mut Tables<'tcx>) -> rustc_ty::Cons

5454

match constant.internal(tables) {

5555

rustc_middle::mir::Const::Ty(c) => c,

5656

cnst => {

57-

panic!("Trying to covert constant `{constant:?}` to type constant, but found {cnst:?}")

57+

panic!("Trying to convert constant `{constant:?}` to type constant, but found {cnst:?}")

5858

}

5959

}

6060

}