Skip to content

Commit

Permalink
Update types.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
farnz committed Apr 2, 2020
1 parent f3f1bab commit 50ecc12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/types.rs
Expand Up @@ -105,15 +105,15 @@ declare_clippy_lint! {
/// **Known problems:** None.
///
/// **Example**
/// ```rust,ignore
/// ```rust
/// fn get_data() -> Option<Option<u32>> {
/// None
/// }
/// ```
///
/// Better:
///
/// ```rust,ignore
/// ```rust
/// pub enum Contents {
/// Data(Vec<u8>), // Was Some(Some(Vec<u8>))
/// NotYetFetched, // Was Some(None)
Expand Down

0 comments on commit 50ecc12

Please sign in to comment.