Skip to content

Commit ef49bbe

Browse files
Fix some typos
1 parent 2bd7171 commit ef49bbe

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

crates/ra_ide/src/ssr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use ra_ide_db::{symbol_index::SymbolsDatabase, RootDatabase};
44
use crate::SourceFileEdit;
55
use ra_ssr::{MatchFinder, SsrError, SsrRule};
66

7-
// Feature: Structural Seach and Replace
7+
// Feature: Structural Search and Replace
88
//
99
// Search and replace with named wildcards that will match any expression, type, path, pattern or item.
1010
// The syntax for a structural search replace command is `<search_pattern> ==>> <replace_pattern>`.

crates/ra_ssr/src/matching.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ impl<'db, 'sema> MatchState<'db, 'sema> {
225225
match self.next_non_trivial(&mut code_it) {
226226
None => {
227227
if let Some(p) = pattern_it.next() {
228-
fail_match!("Part of the pattern was unmached: {:?}", p);
228+
fail_match!("Part of the pattern was unmatched: {:?}", p);
229229
}
230230
return Ok(());
231231
}

crates/ra_ssr/src/parsing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ impl FromStr for SsrRule {
5555
let pattern = it.next().expect("at least empty string").trim();
5656
let template = it
5757
.next()
58-
.ok_or_else(|| SsrError("Cannot find delemiter `==>>`".into()))?
58+
.ok_or_else(|| SsrError("Cannot find delimiter `==>>`".into()))?
5959
.trim()
6060
.to_string();
6161
if it.next().is_some() {

crates/ra_ssr/src/tests.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,12 @@ fn parse_error_text(query: &str) -> String {
152152

153153
#[test]
154154
fn parser_empty_query() {
155-
assert_eq!(parse_error_text(""), "Parse error: Cannot find delemiter `==>>`");
155+
assert_eq!(parse_error_text(""), "Parse error: Cannot find delimiter `==>>`");
156156
}
157157

158158
#[test]
159159
fn parser_no_delimiter() {
160-
assert_eq!(parse_error_text("foo()"), "Parse error: Cannot find delemiter `==>>`");
160+
assert_eq!(parse_error_text("foo()"), "Parse error: Cannot find delimiter `==>>`");
161161
}
162162

163163
#[test]
@@ -227,7 +227,7 @@ fn assert_ssr_transforms(rules: &[&str], input: &str, result: &str) {
227227
let mut after = db.file_text(file_id).to_string();
228228
edits.apply(&mut after);
229229
// Likewise, we need to make sure that whatever transformations fixture parsing applies,
230-
// also get appplied to our expected result.
230+
// also get applied to our expected result.
231231
let result = normalize_code(result);
232232
assert_eq!(after, result);
233233
} else {

crates/rust-analyzer/src/bin/args.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ USAGE:
9898
rust-analyzer parse [FLAGS]
9999
100100
FLAGS:
101-
-h, --help Prints help inforamtion
101+
-h, --help Prints help information
102102
--no-dump"
103103
);
104104
return Ok(Err(HelpPrinted));

0 commit comments

Comments
 (0)