diff options
| author | Jacherr <jwc2002@outlook.com> | 2024-03-15 00:07:40 +0000 |
|---|---|---|
| committer | Jacher <jwc2002@outlook.com> | 2024-05-30 11:45:43 +0000 |
| commit | 46b3264131f9e465cabba119ceccd61fe5617612 (patch) | |
| tree | a628c73a6133ba019f46f2b977521bed10977992 | |
| parent | 93b39d89102227b3d36f6524c9cec0c3c193970e (diff) | |
| download | rust-46b3264131f9e465cabba119ceccd61fe5617612.tar.gz rust-46b3264131f9e465cabba119ceccd61fe5617612.zip | |
add backticks to doc comments
| -rw-r--r-- | clippy_utils/src/ty.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_utils/src/ty.rs b/clippy_utils/src/ty.rs index 295c10e4620..7dda01102c2 100644 --- a/clippy_utils/src/ty.rs +++ b/clippy_utils/src/ty.rs @@ -1343,8 +1343,8 @@ pub fn deref_chain<'cx, 'tcx>(cx: &'cx LateContext<'tcx>, ty: Ty<'tcx>) -> impl } /// Checks if a Ty<'_> has some inherent method Symbol. -/// This does not look for impls in the type's Deref::Target type. -/// If you need this, you should wrap this call in clippy_utils::ty::deref_chain().any(...). +/// This does not look for impls in the type's `Deref::Target` type. +/// If you need this, you should wrap this call in `clippy_utils::ty::deref_chain().any(...)`. pub fn adt_has_inherent_method(cx: &LateContext<'_>, ty: Ty<'_>, method_name: Symbol) -> bool { if let Some(ty_did) = ty.ty_adt_def().map(ty::AdtDef::did) { cx.tcx.inherent_impls(ty_did).into_iter().flatten().any(|&did| { |
