Skip to content

Commit

Permalink
Fix broken docs link in gloo-worker (#487)
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 21, 2024
1 parent 1043eaf commit d600d3a
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 d600d3a

Please sign in to comment.