Add Github Actions workflow to check for typos (#7892)

- Add Github Actions workflow to check typos
- Fix existing typos
This commit is contained in:
Hofer-Julian
2023-01-28 22:22:56 +01:00
committed by GitHub
parent 1f810cd26a
commit 8787ec9fe8
6 changed files with 31 additions and 6 deletions

View File

@ -70,8 +70,8 @@ fn parse_range(range: Value, head: Span) -> Result<(isize, isize, Span), ShellEr
}
}
Value::String { val, span } => {
let splitted_result = val.split_once(',');
match splitted_result {
let split_result = val.split_once(',');
match split_result {
Some((start, end)) => (start.to_string(), end.to_string(), span),
None => {
return Err(ShellError::UnsupportedInput(