Skip to content

Commit

Permalink
Fix broken docs link
Browse files Browse the repository at this point in the history
[WorkerSpawner](https://docs.rs/gloo-worker/latest/gloo_worker/struct.WorkerSpawner.html) is at `crate::WorkerSpawner`, not `crate::spawner::WorkerSpawner`

Fixes #449
  • Loading branch information
ranile authored Jul 18, 2024
1 parent 7efcfe4 commit 0817cca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/worker/src/actor/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub trait Worker: Sized {

/// New bridge created.
///
/// When a new bridge is created by [`WorkerSpawner::spawn`](crate::spawner::WorkerSpawner)
/// When a new bridge is created by [`WorkerSpawner::spawn`](crate::WorkerSpawner)
/// or [`WorkerBridge::fork`](crate::WorkerBridge::fork),
/// the worker will be notified the [`HandlerId`] of the created bridge via this method.
fn connected(&mut self, scope: &WorkerScope<Self>, id: HandlerId) {
Expand Down

0 comments on commit 0817cca

Please sign in to comment.