From 728939191e4218e2c1296c7ba3eb36590cbcb9bd Mon Sep 17 00:00:00 2001 From: hanghuge Date: Sat, 6 Apr 2024 20:30:17 +0800 Subject: [PATCH] chore: fix some typos Signed-off-by: hanghuge --- ci/check_diff.sh | 2 +- tests/mod-resolver/skip-files-issue-5065/main.rs | 2 +- tests/source/no_arg_with_commnet.rs | 2 +- tests/target/no_arg_with_commnet.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ci/check_diff.sh b/ci/check_diff.sh index 93de6040339..2a29cb138ef 100755 --- a/ci/check_diff.sh +++ b/ci/check_diff.sh @@ -87,7 +87,7 @@ function check_diff() { ) if [ -z "$diff" ]; then - echo "no diff detected between rustfmt and the feture branch" + echo "no diff detected between rustfmt and the feature branch" return 0 else echo "$diff" diff --git a/tests/mod-resolver/skip-files-issue-5065/main.rs b/tests/mod-resolver/skip-files-issue-5065/main.rs index 3122e4f220f..f102bf9d181 100644 --- a/tests/mod-resolver/skip-files-issue-5065/main.rs +++ b/tests/mod-resolver/skip-files-issue-5065/main.rs @@ -6,4 +6,4 @@ mod one; fn main() {println!("Hello, world!"); } -// trailing commet +// trailing comment diff --git a/tests/source/no_arg_with_commnet.rs b/tests/source/no_arg_with_commnet.rs index ea4ee0f1eee..41c3c6bea48 100644 --- a/tests/source/no_arg_with_commnet.rs +++ b/tests/source/no_arg_with_commnet.rs @@ -1,2 +1,2 @@ -fn foo( /* cooment */ +fn foo( /* comment */ ) {} diff --git a/tests/target/no_arg_with_commnet.rs b/tests/target/no_arg_with_commnet.rs index 69f61b60f29..21802d87f47 100644 --- a/tests/target/no_arg_with_commnet.rs +++ b/tests/target/no_arg_with_commnet.rs @@ -1 +1 @@ -fn foo(/* cooment */) {} +fn foo(/* comment */) {}