Skip to content

Commit b0eaa84

Browse files
committed
fix some comments
Signed-off-by: cui fliter <[email protected]>
1 parent a8b5245 commit b0eaa84

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

clippy_utils/src/source.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ pub fn snippet_block_with_context<'a>(
362362
}
363363

364364
/// Same as `snippet_with_applicability`, but first walks the span up to the given context. This
365-
/// will result in the macro call, rather then the expansion, if the span is from a child context.
365+
/// will result in the macro call, rather than the expansion, if the span is from a child context.
366366
/// If the span is not from a child context, it will be used directly instead.
367367
///
368368
/// e.g. Given the expression `&vec![]`, getting a snippet from the span for `vec![]` as a HIR node

clippy_utils/src/sugg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ impl<'a> Sugg<'a> {
8888
}
8989

9090
/// Same as `hir`, but first walks the span up to the given context. This will result in the
91-
/// macro call, rather then the expansion, if the span is from a child context. If the span is
91+
/// macro call, rather than the expansion, if the span is from a child context. If the span is
9292
/// not from a child context, it will be used directly instead.
9393
///
9494
/// e.g. Given the expression `&vec![]`, getting a snippet from the span for `vec![]` as a HIR

clippy_utils/src/ty/type_certainty/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ fn generic_args_certainty(cx: &LateContext<'_>, args: &GenericArgs<'_>) -> Certa
150150
}
151151

152152
/// Tries to tell whether a `QPath` resolves to something certain, e.g., whether all of its path
153-
/// segments generic arguments are are instantiated.
153+
/// segments generic arguments are instantiated.
154154
///
155155
/// `qpath` could refer to either a type or a value. The heuristic never needs the `DefId` of a
156156
/// value. So `DefId`s are retained only when `resolves_to_type` is true.

0 commit comments

Comments
 (0)