Remove extra newlines in [significant_drop_in_scrutinee] docs

This commit is contained in:
Serial 2022-07-20 21:35:11 -04:00
parent 7c8e1bff90
commit 8dfea74367

View File

@ -793,18 +793,13 @@
/// ### Example /// ### Example
/// ```rust,ignore /// ```rust,ignore
/// # use std::sync::Mutex; /// # use std::sync::Mutex;
///
/// # struct State {} /// # struct State {}
///
/// # impl State { /// # impl State {
/// # fn foo(&self) -> bool { /// # fn foo(&self) -> bool {
/// # true /// # true
/// # } /// # }
///
/// # fn bar(&self) {} /// # fn bar(&self) {}
/// # } /// # }
///
///
/// let mutex = Mutex::new(State {}); /// let mutex = Mutex::new(State {});
/// ///
/// match mutex.lock().unwrap().foo() { /// match mutex.lock().unwrap().foo() {
@ -815,22 +810,17 @@
/// }; /// };
/// ///
/// println!("All done!"); /// println!("All done!");
///
/// ``` /// ```
/// Use instead: /// Use instead:
/// ```rust /// ```rust
/// # use std::sync::Mutex; /// # use std::sync::Mutex;
///
/// # struct State {} /// # struct State {}
///
/// # impl State { /// # impl State {
/// # fn foo(&self) -> bool { /// # fn foo(&self) -> bool {
/// # true /// # true
/// # } /// # }
///
/// # fn bar(&self) {} /// # fn bar(&self) {}
/// # } /// # }
///
/// let mutex = Mutex::new(State {}); /// let mutex = Mutex::new(State {});
/// ///
/// let is_foo = mutex.lock().unwrap().foo(); /// let is_foo = mutex.lock().unwrap().foo();