diff --git a/tokio/src/runtime/builder.rs b/tokio/src/runtime/builder.rs index 8f477a94004..c99b90d097d 100644 --- a/tokio/src/runtime/builder.rs +++ b/tokio/src/runtime/builder.rs @@ -289,11 +289,7 @@ impl Builder { /// /// The default value is the number of cores available to the system. /// - /// # Panics - /// - /// When using the `current_thread` runtime this method will panic, since - /// those variants do not allow setting worker thread counts. - /// + /// When using the `current_thread` runtime this method has no effect. /// /// # Examples ///