Skip to content

Commit

Permalink
fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
geeklint committed Jun 28, 2023
1 parent 14702a6 commit bc46682
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ let set: Arc<Set<i32>> = Arc::default();
set.try_insert(1);
set.try_insert(2);
set.try_insert(3);
set.remove(1);
set.remove(&1);
let set2 = set.clone();
# let handle =
std::thread::spawn(move || {
set2.wait_to_insert(2);
});
# set.remove(2); // avoid a deadlock in the example
# set.remove(&2); // avoid a deadlock in the example
# handle.join();
# }
```
Expand Down

0 comments on commit bc46682

Please sign in to comment.