fix some typos (#7773)

# Description

Nothing changed, just fix some typos

# Tests + Formatting

Don't forget to add tests that cover your changes.

Make sure you've run and fixed any issues with these commands:

- `cargo fmt --all -- --check` to check standard code formatting (`cargo
fmt --all` applies these changes)
- `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used -A
clippy::needless_collect` to check that you're using the standard code
style
- `cargo test --workspace` to check that all tests pass

# After Submitting

If your PR had any user-facing changes, update [the
documentation](https://github.com/nushell/nushell.github.io) after the
PR is merged, if necessary. This will help us keep the docs up to date.

Co-authored-by: Stefan Holderbach <sholderbach@users.noreply.github.com>
This commit is contained in:
Justin Ma
2023-01-16 19:43:46 +08:00
committed by GitHub
parent 26e6516626
commit f823c7cb5d
11 changed files with 36 additions and 36 deletions

View File

@ -41,7 +41,7 @@ fn catch_can_access_error_as_dollar_in() {
}
#[test]
fn external_failed_should_be_catched() {
fn external_failed_should_be_caught() {
let output = nu!(
cwd: ".",
"try { nu --testbin fail; echo 'success' } catch { echo 'fail' }"
@ -66,7 +66,7 @@ fn loop_catch_break_should_show_failed() {
cwd: ".",
"loop {
try { invalid 1;
continue; } catch { echo 'failed'; break }
continue; } catch { echo 'failed'; break }
}
"
);
@ -80,10 +80,10 @@ fn loop_try_ignores_continue() {
cwd: ".",
"mut total = 0;
for i in 0..10 {
try { if ($i mod 2) == 0 {
continue;}
try { if ($i mod 2) == 0 {
continue;}
$total += 1
} catch { echo 'failed'; break }
} catch { echo 'failed'; break }
}
echo $total
"