From 8fe2b62adff52eae2dc89e612593056fcf2cbac9 Mon Sep 17 00:00:00 2001 From: Hiroaki Yutani Date: Mon, 14 Oct 2024 03:34:11 +0900 Subject: [PATCH] docs: fix function name of `with_any_thread` --- src/event_loop.rs | 2 +- src/platform_impl/linux/mod.rs | 4 ++-- src/platform_impl/windows/event_loop.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/event_loop.rs b/src/event_loop.rs index 155a1262..58e37acd 100644 --- a/src/event_loop.rs +++ b/src/event_loop.rs @@ -72,7 +72,7 @@ impl EventLoopBuilder { /// 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 /// 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 /// loop on any thread. /// diff --git a/src/platform_impl/linux/mod.rs b/src/platform_impl/linux/mod.rs index 661f6022..7fefb3b4 100644 --- a/src/platform_impl/linux/mod.rs +++ b/src/platform_impl/linux/mod.rs @@ -312,8 +312,8 @@ impl EventLoop { "Initializing the event loop outside of the main thread is a significant \ cross-platform compatibility hazard. If you absolutely need to create an \ EventLoop on a different thread, you can use the \ - `EventLoopBuilderExtX11::any_thread` or `EventLoopBuilderExtWayland::any_thread` \ - functions." + `EventLoopBuilderExtX11::with_any_thread` or \ + `EventLoopBuilderExtWayland::with_any_thread` functions." ); } diff --git a/src/platform_impl/windows/event_loop.rs b/src/platform_impl/windows/event_loop.rs index 3751834a..c4618520 100644 --- a/src/platform_impl/windows/event_loop.rs +++ b/src/platform_impl/windows/event_loop.rs @@ -180,7 +180,7 @@ impl EventLoop { "Initializing the event loop outside of the main thread is a significant \ cross-platform compatibility hazard. If you absolutely need to create an \ EventLoop on a different thread, you can use the \ - `EventLoopBuilderExtWindows::any_thread` function." + `EventLoopBuilderExtWindows::with_any_thread` function." ); }