about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2022-10-10 20:45:04 +0200
committerGuillaume Gomez <guillaume.gomez@huawei.com>2022-10-10 20:45:04 +0200
commitd565200270d425ab2d72b06109314c786676f593 (patch)
treefa2573f6a875f22b24663fd935febcb3a642b6b0
parent14de94aec59bcd535f690e255a950ca76fcf2d5a (diff)
downloadrust-d565200270d425ab2d72b06109314c786676f593.tar.gz
rust-d565200270d425ab2d72b06109314c786676f593.zip
Fix unclosed HTML tag in clippy doc
-rw-r--r--src/tools/clippy/clippy_utils/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/clippy/clippy_utils/src/lib.rs b/src/tools/clippy/clippy_utils/src/lib.rs
index 42374fdd7ba..e7e3625c078 100644
--- a/src/tools/clippy/clippy_utils/src/lib.rs
+++ b/src/tools/clippy/clippy_utils/src/lib.rs
@@ -2064,9 +2064,9 @@ pub fn fn_def_id(cx: &LateContext<'_>, expr: &Expr<'_>) -> Option<DefId> {
     }
 }
 
-/// Returns Option<String> where String is a textual representation of the type encapsulated in the
-/// slice iff the given expression is a slice of primitives (as defined in the
-/// `is_recursively_primitive_type` function) and None otherwise.
+/// Returns `Option<String>` where String is a textual representation of the type encapsulated in
+/// the slice iff the given expression is a slice of primitives (as defined in the
+/// `is_recursively_primitive_type` function) and `None` otherwise.
 pub fn is_slice_of_primitives(cx: &LateContext<'_>, expr: &Expr<'_>) -> Option<String> {
     let expr_type = cx.typeck_results().expr_ty_adjusted(expr);
     let expr_kind = expr_type.kind();