Skip to content

Commit 78b78ec

Browse files
committed
fix doc links
1 parent e1e8533 commit 78b78ec

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

crates/bevy_app/src/task_pool_plugin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use {crate::Last, bevy_ecs::prelude::NonSend};
1212
#[cfg(not(target_arch = "wasm32"))]
1313
use bevy_tasks::tick_global_task_pools_on_main_thread;
1414

15-
/// Setup of default task pools: [`AsyncComputeTaskPool`], [`ComputeTaskPool`], [`IoTaskPool`].
15+
/// Setup of default task pools: [`ComputeTaskPool`].
1616
#[derive(Default)]
1717
pub struct TaskPoolPlugin {
1818
/// Options for the [`TaskPool`](bevy_tasks::TaskPool) created at application start.

crates/bevy_tasks/src/task_pool.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ impl TaskPoolBuilder {
6363

6464
/// The task pool contains a dynamically scaling group of threads for handling blocking tasks.
6565
/// The pool will spin up and down threads as needed, unlike the threads allocated by
66-
/// [`num_threads`] which are always available. By default, zero threads will be spawned at
66+
/// [`Self::num_threads`] which are always available. By default, zero threads will be spawned at
6767
/// initialization, and up to `num_blocking_threads` will be spun up. Upon reaching that limit,
6868
/// calls to [`spawn_blocking`] and [`spawn_blocking_async`] will wait until one of the threads
6969
/// becomes available.
@@ -644,7 +644,7 @@ impl TaskPool {
644644
/// ## Platform Specific Behavior
645645
/// Long running blocking operations in browser environments will panic, so the app
646646
/// must yield back to the browser periodically. If you're targeting web platforms,
647-
/// consider using [`spawn_blocking_async`].
647+
/// consider using [`Self::spawn_blocking_async`].
648648
///
649649
/// [thrash]: https://en.wikipedia.org/wiki/Thrashing_(computer_science)
650650
pub fn spawn_blocking<T>(&self, f: impl FnOnce() -> T + Send + 'static) -> Task<T>
@@ -675,7 +675,7 @@ impl TaskPool {
675675
/// asynchronously. When you run CPU-bound code using `spawn_blocking`,
676676
/// you should keep this large upper limit in mind; to run your
677677
/// CPU-bound computations on only a few threads. Spawning too many threads
678-
/// will cause the OS to [thrash], which may impact the performance
678+
/// will cause the OS to thrash, which may impact the performance
679679
/// of the non-blocking tasks scheduled onto the `TaskPool`.
680680
///
681681
/// The returned task can be detached or cancelled; however, any long standing

0 commit comments

Comments
 (0)