fix: Typos

This commit is contained in:
Alexander Gonzalez 2021-07-27 18:00:22 -04:00
parent 41943f2328
commit e57ad5456c
3 changed files with 3 additions and 3 deletions

View file

@ -233,7 +233,7 @@ impl TestDB {
events events
.into_iter() .into_iter()
.filter_map(|e| match e.kind { .filter_map(|e| match e.kind {
// This pretty horrible, but `Debug` is the only way to inspect // This is pretty horrible, but `Debug` is the only way to inspect
// QueryDescriptor at the moment. // QueryDescriptor at the moment.
salsa::EventKind::WillExecute { database_key } => { salsa::EventKind::WillExecute { database_key } => {
Some(format!("{:?}", database_key.debug(self))) Some(format!("{:?}", database_key.debug(self)))

View file

@ -138,7 +138,7 @@ impl TestDB {
events events
.into_iter() .into_iter()
.filter_map(|e| match e.kind { .filter_map(|e| match e.kind {
// This pretty horrible, but `Debug` is the only way to inspect // This is pretty horrible, but `Debug` is the only way to inspect
// QueryDescriptor at the moment. // QueryDescriptor at the moment.
salsa::EventKind::WillExecute { database_key } => { salsa::EventKind::WillExecute { database_key } => {
Some(format!("{:?}", database_key.debug(self))) Some(format!("{:?}", database_key.debug(self)))

View file

@ -173,7 +173,7 @@ pub fn diff(from: &SyntaxNode, to: &SyntaxNode) -> TreeDiff {
} }
} }
// FIXME: this is horrible inefficient. I bet there's a cool algorithm to diff trees properly. // FIXME: this is horribly inefficient. I bet there's a cool algorithm to diff trees properly.
fn go(diff: &mut TreeDiff, lhs: SyntaxElement, rhs: SyntaxElement) { fn go(diff: &mut TreeDiff, lhs: SyntaxElement, rhs: SyntaxElement) {
let (lhs, rhs) = match lhs.as_node().zip(rhs.as_node()) { let (lhs, rhs) = match lhs.as_node().zip(rhs.as_node()) {
Some((lhs, rhs)) => (lhs, rhs), Some((lhs, rhs)) => (lhs, rhs),