mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-30 17:34:54 +00:00
fix doc
This commit is contained in:
parent
e0a4988fcc
commit
737f62cb6e
@ -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 New Issue
Block a user