Update types.rs

This commit is contained in:
Simon Farnsworth 2020-04-02 14:29:08 +01:00 committed by GitHub
parent f3f1babc1b
commit 50ecc12541
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,7 +105,7 @@ declare_clippy_lint! {
/// **Known problems:** None.
///
/// **Example**
/// ```rust,ignore
/// ```rust
/// fn get_data() -> Option<Option<u32>> {
/// None
/// }
@ -113,7 +113,7 @@ declare_clippy_lint! {
///
/// Better:
///
/// ```rust,ignore
/// ```rust
/// pub enum Contents {
/// Data(Vec<u8>), // Was Some(Some(Vec<u8>))
/// NotYetFetched, // Was Some(None)