docs: fix function name of with_any_thread

This commit is contained in:
Hiroaki Yutani 2024-10-14 03:34:11 +09:00 committed by GitHub
parent 4e3165f3d8
commit 8fe2b62adf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View file

@ -72,7 +72,7 @@ impl EventLoopBuilder {
/// Attempting to create the event loop off the main thread will panic. This /// Attempting to create the event loop off the main thread will panic. This
/// restriction isn't strictly necessary on all platforms, but is imposed to /// restriction isn't strictly necessary on all platforms, but is imposed to
/// eliminate any nasty surprises when porting to platforms that require it. /// eliminate any nasty surprises when porting to platforms that require it.
/// `EventLoopBuilderExt::any_thread` functions are exposed in the relevant /// `EventLoopBuilderExt::with_any_thread` functions are exposed in the relevant
/// [`platform`] module if the target platform supports creating an event /// [`platform`] module if the target platform supports creating an event
/// loop on any thread. /// loop on any thread.
/// ///

View file

@ -312,8 +312,8 @@ impl EventLoop {
"Initializing the event loop outside of the main thread is a significant \ "Initializing the event loop outside of the main thread is a significant \
cross-platform compatibility hazard. If you absolutely need to create an \ cross-platform compatibility hazard. If you absolutely need to create an \
EventLoop on a different thread, you can use the \ EventLoop on a different thread, you can use the \
`EventLoopBuilderExtX11::any_thread` or `EventLoopBuilderExtWayland::any_thread` \ `EventLoopBuilderExtX11::with_any_thread` or \
functions." `EventLoopBuilderExtWayland::with_any_thread` functions."
); );
} }

View file

@ -180,7 +180,7 @@ impl EventLoop {
"Initializing the event loop outside of the main thread is a significant \ "Initializing the event loop outside of the main thread is a significant \
cross-platform compatibility hazard. If you absolutely need to create an \ cross-platform compatibility hazard. If you absolutely need to create an \
EventLoop on a different thread, you can use the \ EventLoop on a different thread, you can use the \
`EventLoopBuilderExtWindows::any_thread` function." `EventLoopBuilderExtWindows::with_any_thread` function."
); );
} }