Unnamed repository; edit this file 'description' to name the repository.
fix: duplicated words in stdx/assert.rs and ide/inject.rs doc-comments
Signed-off-by: Kai Tanaka <[email protected]>
| -rw-r--r-- | crates/ide/src/syntax_highlighting/inject.rs | 2 | ||||
| -rw-r--r-- | crates/stdx/src/assert.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/crates/ide/src/syntax_highlighting/inject.rs b/crates/ide/src/syntax_highlighting/inject.rs index 76bb06328b..9af6d67b59 100644 --- a/crates/ide/src/syntax_highlighting/inject.rs +++ b/crates/ide/src/syntax_highlighting/inject.rs @@ -177,7 +177,7 @@ pub(super) fn doc_comment( match sema.first_crate(vfs_file_id) { Some(krate) => krate.base().data(sema.db).proc_macro_cwd.clone(), None => { - // Arbitrarily pick /, since from_single_file treats this file as as /main.rs anyway. + // Arbitrarily pick /, since from_single_file treats this file as /main.rs anyway. Arc::new(ide_db::base_db::AbsPathBuf::try_from("/").unwrap()) } } diff --git a/crates/stdx/src/assert.rs b/crates/stdx/src/assert.rs index 91c279798c..6032395a4d 100644 --- a/crates/stdx/src/assert.rs +++ b/crates/stdx/src/assert.rs @@ -43,7 +43,7 @@ /// Asserts that the condition is always true and returns its actual value. /// -/// If the condition is true does nothing and and evaluates to true. +/// If the condition is true does nothing and evaluates to true. /// /// If the condition is false: /// * panics if `force` feature or `debug_assertions` are enabled, @@ -71,7 +71,7 @@ macro_rules! always { /// Asserts that the condition is never true and returns its actual value. /// -/// If the condition is false does nothing and and evaluates to false. +/// If the condition is false does nothing and evaluates to false. /// /// If the condition is true: /// * panics if `force` feature or `debug_assertions` are enabled, |