setup CI and tidy to use typos for spellchecking and fix few typos

This commit is contained in:
klensy
2024-12-07 13:51:08 +03:00
parent f51c9870ba
commit c76d032f01
129 changed files with 326 additions and 175 deletions

View File

@@ -1344,7 +1344,7 @@ impl Expr {
}
}
/// Returns an expression with (when possible) *one* outter brace removed
/// Returns an expression with (when possible) *one* outer brace removed
pub fn maybe_unwrap_block(&self) -> &Expr {
if let ExprKind::Block(block, None) = &self.kind
&& let [stmt] = block.stmts.as_slice()

View File

@@ -142,7 +142,7 @@ macro_rules! common_visitor_and_walkers {
)?
// Methods in this trait have one of three forms, with the last two forms
// only occuring on `MutVisitor`:
// only occurring on `MutVisitor`:
//
// fn visit_t(&mut self, t: &mut T); // common
// fn flat_map_t(&mut self, t: T) -> SmallVec<[T; 1]>; // rare