runtime: correct the default thread name in docs (#7896)

This commit is contained in:
DaniPopes
2026-02-08 03:34:44 -08:00
committed by GitHub
parent d89e998922
commit 530af3f331
+2 -2
View File
@@ -516,7 +516,7 @@ impl Builder {
/// Sets name of threads spawned by the `Runtime`'s thread pool. /// Sets name of threads spawned by the `Runtime`'s thread pool.
/// ///
/// The default name is "tokio-runtime-worker". /// The default name is "tokio-rt-worker".
/// ///
/// # Examples /// # Examples
/// ///
@@ -540,7 +540,7 @@ impl Builder {
/// Sets a function used to generate the name of threads spawned by the `Runtime`'s thread pool. /// Sets a function used to generate the name of threads spawned by the `Runtime`'s thread pool.
/// ///
/// The default name fn is `|| "tokio-runtime-worker".into()`. /// The default name fn is `|| "tokio-rt-worker".into()`.
/// ///
/// # Examples /// # Examples
/// ///