Skip to content

Commit 541c8b8

Browse files
committed
Improve documents in functions group
1 parent add3e50 commit 541c8b8

File tree

1 file changed

+2
-2
lines changed
  • clippy_lints/src/functions

1 file changed

+2
-2
lines changed

clippy_lints/src/functions/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ declare_clippy_lint! {
5656

5757
declare_clippy_lint! {
5858
/// **What it does:** Checks for public functions that dereference raw pointer
59-
/// arguments but are not marked unsafe.
59+
/// arguments but are not marked `unsafe`.
6060
///
6161
/// **Why is this bad?** The function should probably be marked `unsafe`, since
6262
/// for an arbitrary raw pointer, there is no way of telling for sure if it is
@@ -165,7 +165,7 @@ declare_clippy_lint! {
165165
declare_clippy_lint! {
166166
/// **What it does:** Checks for public functions that return a `Result`
167167
/// with an `Err` type of `()`. It suggests using a custom type that
168-
/// implements [`std::error::Error`].
168+
/// implements `std::error::Error`.
169169
///
170170
/// **Why is this bad?** Unit does not implement `Error` and carries no
171171
/// further information about what went wrong.

0 commit comments

Comments
 (0)