Skip to content

Commit

Permalink
Improve documents in functions group
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-Nak committed Mar 30, 2021
1 parent add3e50 commit 541c8b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/functions/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ declare_clippy_lint! {

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

0 comments on commit 541c8b8

Please sign in to comment.