Unnamed repository; edit this file 'description' to name the repository.
Merge pull request #18678 from regexident/fix-typos
minor: Fix a few typos
Laurențiu Nicola 2024-12-13
parent 6aadbae · parent 3d4f10a · commit 405f01a
-rw-r--r--crates/hir-ty/src/interner.rs2
-rw-r--r--crates/ide/src/lib.rs4
-rw-r--r--crates/ra-salsa/src/durability.rs2
-rw-r--r--crates/ra-salsa/src/lib.rs2
-rw-r--r--crates/ra-salsa/tests/cycles.rs2
5 files changed, 6 insertions, 6 deletions
diff --git a/crates/hir-ty/src/interner.rs b/crates/hir-ty/src/interner.rs
index 3dbefc5cec..804c3aea3a 100644
--- a/crates/hir-ty/src/interner.rs
+++ b/crates/hir-ty/src/interner.rs
@@ -55,7 +55,7 @@ impl chalk_ir::interner::Interner for Interner {
type InternedConst = Interned<InternedWrapper<ConstData>>;
type InternedConcreteConst = ConstScalar;
type InternedGenericArg = GenericArgData;
- // We could do the following, but that saves "only" 20mb on self while increasing inferecene
+ // We could do the following, but that saves "only" 20mb on self while increasing inference
// time by ~2.5%
// type InternedGoal = Interned<InternedWrapper<GoalData>>;
type InternedGoal = Arc<GoalData>;
diff --git a/crates/ide/src/lib.rs b/crates/ide/src/lib.rs
index d8dc9ca32a..c13fc84356 100644
--- a/crates/ide/src/lib.rs
+++ b/crates/ide/src/lib.rs
@@ -299,7 +299,7 @@ impl Analysis {
/// Gets the syntax tree of the file.
pub fn parse(&self, file_id: FileId) -> Cancellable<SourceFile> {
- // FIXME editiojn
+ // FIXME edition
self.with_db(|db| db.parse(EditionedFileId::current_edition(file_id)).tree())
}
@@ -540,7 +540,7 @@ impl Analysis {
/// Returns URL(s) for the documentation of the symbol under the cursor.
/// # Arguments
/// * `position` - Position in the file.
- /// * `target_dir` - Directory where the build output is storeda.
+ /// * `target_dir` - Directory where the build output is stored.
pub fn external_docs(
&self,
position: FilePosition,
diff --git a/crates/ra-salsa/src/durability.rs b/crates/ra-salsa/src/durability.rs
index 7b8e6840fc..9116f1606f 100644
--- a/crates/ra-salsa/src/durability.rs
+++ b/crates/ra-salsa/src/durability.rs
@@ -11,7 +11,7 @@
/// case), and we know that the query only used inputs of medium
/// durability or higher, then we can skip that enumeration.
///
-/// Typically, one assigns low durabilites to inputs that the user is
+/// Typically, one assigns low durabilities to inputs that the user is
/// frequently editing. Medium or high durabilities are used for
/// configuration, the source from library crates, or other things
/// that are unlikely to be edited.
diff --git a/crates/ra-salsa/src/lib.rs b/crates/ra-salsa/src/lib.rs
index bd1ab6971c..8530521d91 100644
--- a/crates/ra-salsa/src/lib.rs
+++ b/crates/ra-salsa/src/lib.rs
@@ -291,7 +291,7 @@ pub trait ParallelDatabase: Database + Send {
/// # Panics
///
/// It is not permitted to create a snapshot from inside of a
- /// query. Attepting to do so will panic.
+ /// query. Attempting to do so will panic.
///
/// # Deadlock warning
///
diff --git a/crates/ra-salsa/tests/cycles.rs b/crates/ra-salsa/tests/cycles.rs
index 8113662655..3c3931e658 100644
--- a/crates/ra-salsa/tests/cycles.rs
+++ b/crates/ra-salsa/tests/cycles.rs
@@ -255,7 +255,7 @@ fn cycle_revalidate_unchanged_twice() {
db.set_b_invokes(CycleQuery::A);
assert!(db.cycle_a().is_err());
- db.set_c_invokes(CycleQuery::A); // force new revisi5on
+ db.set_c_invokes(CycleQuery::A); // force new revision
// on this run
expect![[r#"