Web: use the word "Web" correctly and consistently (#3785)

This commit is contained in:
daxpedda 2024-07-10 16:17:39 +02:00 committed by GitHub
parent 39a7d5b738
commit d5fd8682eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 71 additions and 66 deletions

View file

@ -5,7 +5,7 @@ use crate::application::ApplicationHandler;
use crate::error::EventLoopError;
use crate::event::Event;
use crate::event_loop::ActiveEventLoop as RootActiveEventLoop;
use crate::platform::web::{ActiveEventLoopExtWebSys, PollStrategy, WaitUntilStrategy};
use crate::platform::web::{ActiveEventLoopExtWeb, PollStrategy, WaitUntilStrategy};
mod proxy;
pub(crate) mod runner;

View file

@ -439,7 +439,7 @@ impl Shared {
}
pub fn init(&self) {
// NB: For consistency all platforms must call `can_create_surfaces` even though web
// NB: For consistency all platforms must call `can_create_surfaces` even though Web
// applications don't themselves have a formal surface destroy/create lifecycle.
self.run_until_cleared(
[Event::NewEvents(StartCause::Init), Event::CreateSurfaces].into_iter(),
@ -604,7 +604,7 @@ impl Shared {
self.exit();
self.apply_control_flow();
// We don't call `handle_loop_destroyed` here because we don't need to
// perform cleanup when the web browser is going to destroy the page.
// perform cleanup when the Web browser is going to destroy the page.
self.handle_event(Event::LoopExiting);
}