about summary refs log tree commit diff
path: root/clippy_utils
diff options
context:
space:
mode:
authorwhodi <whodi@pop-os.localdomain>2022-04-15 14:25:55 -0400
committerManish Goregaokar <manishsmail@gmail.com>2022-04-15 14:18:09 -0700
commit29ef80c78a0f9c58607944e50d3240eee2b7cdc7 (patch)
tree24003199ba08dd7043408fef8799a335c88aecfd /clippy_utils
parentc0fce5a8475927a7dc5f56f4efb2468aa87a4da0 (diff)
downloadrust-29ef80c78a0f9c58607944e50d3240eee2b7cdc7.tar.gz
rust-29ef80c78a0f9c58607944e50d3240eee2b7cdc7.zip
adding spell checking
Diffstat (limited to 'clippy_utils')
-rw-r--r--clippy_utils/src/macros.rs2
-rw-r--r--clippy_utils/src/source.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/clippy_utils/src/macros.rs b/clippy_utils/src/macros.rs
index e7d4c5a4952..a268e339bb1 100644
--- a/clippy_utils/src/macros.rs
+++ b/clippy_utils/src/macros.rs
@@ -367,7 +367,7 @@ impl<'tcx> FormatArgsExpn<'tcx> {
         expr_visitor_no_bodies(|e| {
             // if we're still inside of the macro definition...
             if e.span.ctxt() == expr.span.ctxt() {
-                // ArgumnetV1::new_<format_trait>(<value>)
+                // ArgumentV1::new_<format_trait>(<value>)
                 if_chain! {
                     if let ExprKind::Call(callee, [val]) = e.kind;
                     if let ExprKind::Path(QPath::TypeRelative(ty, seg)) = callee.kind;
diff --git a/clippy_utils/src/source.rs b/clippy_utils/src/source.rs
index beed7326803..c69a3d8d2a1 100644
--- a/clippy_utils/src/source.rs
+++ b/clippy_utils/src/source.rs
@@ -108,7 +108,7 @@ pub fn is_present_in_source<T: LintContext>(cx: &T, span: Span) -> bool {
     true
 }
 
-/// Returns the positon just before rarrow
+/// Returns the position just before rarrow
 ///
 /// ```rust,ignore
 /// fn into(self) -> () {}