Skip to content

Commit 0ae3813

Browse files
authored
Merge pull request #18671 from p-hofer/master
Fix typo in error message for invalid casting
2 parents acd4696 + 04ac6f8 commit 0ae3813

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ide-diagnostics/src/handlers/invalid_cast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pub(crate) fn invalid_cast(ctx: &DiagnosticsContext<'_>, d: &hir::InvalidCast) -
5959
DiagnosticCode::RustcHardError("E0606"),
6060
format_ty!(
6161
ctx,
62-
"casting `{}` as `{}` is invalid: needs defererence or removal of unneeded borrow",
62+
"casting `{}` as `{}` is invalid: needs dereference or removal of unneeded borrow",
6363
d.expr_ty,
6464
d.cast_ty
6565
),

0 commit comments

Comments
 (0)