mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-30 08:30:45 +00:00
fix doc
This commit is contained in:
parent
e0a4988fcc
commit
737f62cb6e
1 changed files with 14 additions and 0 deletions
|
@ -13,6 +13,13 @@ declare_clippy_lint! {
|
|||
///
|
||||
/// **Example:**
|
||||
/// ```rust
|
||||
/// enum ValType {
|
||||
/// I32,
|
||||
/// I64,
|
||||
/// F32,
|
||||
/// F64,
|
||||
/// }
|
||||
///
|
||||
/// impl ValType {
|
||||
/// pub fn bytes(self: Self) -> usize {
|
||||
/// match self {
|
||||
|
@ -26,6 +33,13 @@ declare_clippy_lint! {
|
|||
/// Could be rewritten as
|
||||
///
|
||||
/// ```rust
|
||||
/// enum ValType {
|
||||
/// I32,
|
||||
/// I64,
|
||||
/// F32,
|
||||
/// F64,
|
||||
/// }
|
||||
///
|
||||
/// impl ValType {
|
||||
/// pub fn bytes(self) -> usize {
|
||||
/// match self {
|
||||
|
|
Loading…
Reference in a new issue