Skip to content

Commit

Permalink
Fix await_holding_refcell_ref examples for clarify
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Nov 5, 2020
1 parent b20d4c1 commit 1e4ce0f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clippy_lints/src/await_holding_invalid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ declare_clippy_lint! {
/// use std::cell::RefCell;
///
/// async fn foo(x: &RefCell<u32>) {
/// let b = x.borrow_mut()();
/// *ref += 1;
/// let mut y = x.borrow_mut();
/// *y += 1;
/// bar.await;
/// }
/// ```
Expand All @@ -77,8 +77,8 @@ declare_clippy_lint! {
///
/// async fn foo(x: &RefCell<u32>) {
/// {
/// let b = x.borrow_mut();
/// *ref += 1;
/// let mut y = x.borrow_mut();
/// *y += 1;
/// }
/// bar.await;
/// }
Expand Down

0 comments on commit 1e4ce0f

Please sign in to comment.