mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-28 15:41:10 +00:00
Improve documents in functions group
This commit is contained in:
parent
add3e5094f
commit
541c8b8f69
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue