mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-25 11:57:25 +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:**
|
/// **Example:**
|
||||||
/// ```rust
|
/// ```rust
|
||||||
|
/// enum ValType {
|
||||||
|
/// I32,
|
||||||
|
/// I64,
|
||||||
|
/// F32,
|
||||||
|
/// F64,
|
||||||
|
/// }
|
||||||
|
///
|
||||||
/// impl ValType {
|
/// impl ValType {
|
||||||
/// pub fn bytes(self: Self) -> usize {
|
/// pub fn bytes(self: Self) -> usize {
|
||||||
/// match self {
|
/// match self {
|
||||||
|
@ -26,6 +33,13 @@ declare_clippy_lint! {
|
||||||
/// Could be rewritten as
|
/// Could be rewritten as
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
|
/// enum ValType {
|
||||||
|
/// I32,
|
||||||
|
/// I64,
|
||||||
|
/// F32,
|
||||||
|
/// F64,
|
||||||
|
/// }
|
||||||
|
///
|
||||||
/// impl ValType {
|
/// impl ValType {
|
||||||
/// pub fn bytes(self) -> usize {
|
/// pub fn bytes(self) -> usize {
|
||||||
/// match self {
|
/// match self {
|
||||||
|
|
Loading…
Add table
Reference in a new issue