Skip to content

Commit 001607f

Browse files
committed
Auto merge of #14697 - cuishuang:master, r=lnicola
fix some typos
2 parents 3a27518 + 41632fa commit 001607f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/ide-assists/src/handlers/add_return_type.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ pub(crate) fn add_return_type(acc: &mut Assists, ctx: &AssistContext<'_>) -> Opt
3434
|builder| {
3535
match builder_edit_pos {
3636
InsertOrReplace::Insert(insert_pos, needs_whitespace) => {
37-
let preceeding_whitespace = if needs_whitespace { " " } else { "" };
38-
builder.insert(insert_pos, format!("{preceeding_whitespace}-> {ty} "))
37+
let preceding_whitespace = if needs_whitespace { " " } else { "" };
38+
builder.insert(insert_pos, format!("{preceding_whitespace}-> {ty} "))
3939
}
4040
InsertOrReplace::Replace(text_range) => {
4141
builder.replace(text_range, format!("-> {ty}"))

0 commit comments

Comments
 (0)