Skip to content

Commit 46b3264

Browse files
committed
add backticks to doc comments
1 parent 93b39d8 commit 46b3264

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_utils/src/ty.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1343,8 +1343,8 @@ pub fn deref_chain<'cx, 'tcx>(cx: &'cx LateContext<'tcx>, ty: Ty<'tcx>) -> impl
13431343
}
13441344

13451345
/// Checks if a Ty<'_> has some inherent method Symbol.
1346-
/// This does not look for impls in the type's Deref::Target type.
1347-
/// If you need this, you should wrap this call in clippy_utils::ty::deref_chain().any(...).
1346+
/// This does not look for impls in the type's `Deref::Target` type.
1347+
/// If you need this, you should wrap this call in `clippy_utils::ty::deref_chain().any(...)`.
13481348
pub fn adt_has_inherent_method(cx: &LateContext<'_>, ty: Ty<'_>, method_name: Symbol) -> bool {
13491349
if let Some(ty_did) = ty.ty_adt_def().map(ty::AdtDef::did) {
13501350
cx.tcx.inherent_impls(ty_did).into_iter().flatten().any(|&did| {

0 commit comments

Comments
 (0)