Auto merge of #14577 - jsoref:spelling, r=lnicola

Spelling

This PR corrects misspellings identified by the [check-spelling action](https://github.com/marketplace/actions/check-spelling).

The misspellings have been reported at 4699991040 (summary-12751355796)

The action reports that the changes in this PR would make it happy: 4699991284 (summary-12751356293)

closes #14567
This commit is contained in:
bors 2023-04-19 14:05:40 +00:00
commit 2400b36a2e
83 changed files with 137 additions and 136 deletions

View file

@ -609,14 +609,14 @@ fn classify_name_ref(
_ => false,
};
let reciever_is_part_of_indivisible_expression = match &receiver {
let receiver_is_part_of_indivisible_expression = match &receiver {
Some(ast::Expr::IfExpr(_)) => {
let next_token_kind = next_non_trivia_token(name_ref.syntax().clone()).map(|t| t.kind());
next_token_kind == Some(SyntaxKind::ELSE_KW)
},
_ => false
};
if reciever_is_part_of_indivisible_expression {
if receiver_is_part_of_indivisible_expression {
return None;
}

View file

@ -133,7 +133,7 @@ pub use crate::{
///
/// Another case where this would be instrumental is macro expansion. We want to
/// insert a fake ident and re-expand code. There's `expand_speculative` as a
/// work-around for this.
/// workaround for this.
///
/// A different use-case is completion of injection (examples and links in doc
/// comments). When computing completion for a path in a doc-comment, you want

View file

@ -74,7 +74,7 @@ fn render(
item.insert_text(banged_name(&escaped_name)).lookup_by(banged_name(&name));
}
_ => {
cov_mark::hit!(dont_insert_macro_call_parens_unncessary);
cov_mark::hit!(dont_insert_macro_call_parens_unnecessary);
item.insert_text(escaped_name);
}
};
@ -140,8 +140,8 @@ mod tests {
use crate::tests::check_edit;
#[test]
fn dont_insert_macro_call_parens_unncessary() {
cov_mark::check!(dont_insert_macro_call_parens_unncessary);
fn dont_insert_macro_call_parens_unnecessary() {
cov_mark::check!(dont_insert_macro_call_parens_unnecessary);
check_edit(
"frobnicate",
r#"

View file

@ -105,7 +105,7 @@ fn completion_list_with_config(
include_keywords: bool,
trigger_character: Option<char>,
) -> String {
// filter out all but one builtintype completion for smaller test outputs
// filter out all but one built-in type completion for smaller test outputs
let items = get_all_items(config, ra_fixture, trigger_character);
let items = items
.into_iter()

View file

@ -667,7 +667,7 @@ fn main() {
}
#[test]
fn varaiant_with_struct() {
fn variant_with_struct() {
check_empty(
r#"
pub struct YoloVariant {

View file

@ -81,7 +81,7 @@ impl Foo {
}
#[proc_macros::input_replace(
fn suprise() {
fn surprise() {
Foo.$0
}
)]
@ -114,7 +114,7 @@ impl Foo {
}
#[proc_macros::input_replace(
fn suprise() {
fn surprise() {
Foo.f$0
}
)]