Skip to content

Commit

Permalink
docs(fix): docstring in wrong place lmao oopsie >~<
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamAnimate committed Jan 29, 2025
1 parent 2de5884 commit 5dd439e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/threading.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
use std::thread::{spawn, JoinHandle};
use std::ops::Deref;

pub struct ThreadAbstraction (Option<JoinHandle<()>>);

/// Schrödinger's threads.
///
/// Threads in ThreadAbstraction can be either be started or not started, via the `spawn_if`
Expand All @@ -24,6 +22,8 @@ pub struct ThreadAbstraction (Option<JoinHandle<()>>);
/// # Disadvantages
///
/// It does not provide full `JoinThread<T>` parity. Only few methods are implemented.
pub struct ThreadAbstraction (Option<JoinHandle<()>>);

impl ThreadAbstraction {
/// Spawn a thread.
///
Expand Down

0 comments on commit 5dd439e

Please sign in to comment.