From a5b4ceed39e2aaa3e517c4f23f466fe2ff67d028 Mon Sep 17 00:00:00 2001 From: alongdate <167442392+alongdate@users.noreply.github.com> Date: Fri, 19 Apr 2024 21:29:22 +0800 Subject: [PATCH] chore: fix some typos in comments (#2340) Signed-off-by: alongdate --- examples/file_explorer.rs | 2 +- examples/global.rs | 2 +- examples/nested_listeners.rs | 2 +- examples/read_size.rs | 2 +- packages/cli/src/server/web/server.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/file_explorer.rs b/examples/file_explorer.rs index ae0ab65ca..6a07cfe45 100644 --- a/examples/file_explorer.rs +++ b/examples/file_explorer.rs @@ -92,7 +92,7 @@ impl Files { let paths = match std::fs::read_dir(cur_path) { Ok(e) => e, Err(err) => { - let err = format!("An error occured: {err:?}"); + let err = format!("An error occurred: {err:?}"); self.err = Some(err); self.path_stack.pop(); return; diff --git a/examples/global.rs b/examples/global.rs index a041d211d..df6849ab5 100644 --- a/examples/global.rs +++ b/examples/global.rs @@ -48,7 +48,7 @@ fn Display() -> Element { #[component] fn Reset() -> Element { - // Not all write methods are availale on global signals since `write` requires a mutable reference. In these cases, + // Not all write methods are available on global signals since `write` requires a mutable reference. In these cases, // We can simply pull out the actual signal using the signal() method. let mut as_signal = use_hook(|| COUNT.signal()); diff --git a/examples/nested_listeners.rs b/examples/nested_listeners.rs index aaee9757e..33cf3d404 100644 --- a/examples/nested_listeners.rs +++ b/examples/nested_listeners.rs @@ -2,7 +2,7 @@ //! //! This example showcases how to control event bubbling from child to parents. //! -//! Both web and desktop support bubbling and bubble cancelation. +//! Both web and desktop support bubbling and bubble cancellation. use dioxus::prelude::*; diff --git a/examples/read_size.rs b/examples/read_size.rs index 932c831c7..86a33b958 100644 --- a/examples/read_size.rs +++ b/examples/read_size.rs @@ -1,6 +1,6 @@ //! Read the size of elements using the MountedData struct. //! -//! Whenever an Element is finally mounted to the Dom, its data is avaiable to be read. +//! Whenever an Element is finally mounted to the Dom, its data is available to be read. //! These fields can typically only be read asynchronously, since various renderers need to release the main thread to //! perform layout and painting. diff --git a/packages/cli/src/server/web/server.rs b/packages/cli/src/server/web/server.rs index 7f26ced1f..ef1c4b804 100644 --- a/packages/cli/src/server/web/server.rs +++ b/packages/cli/src/server/web/server.rs @@ -220,7 +220,7 @@ pub fn get_rustls_with_mkcert(web_config: &WebHttpsConfig) -> Result<(String, St Err(e) => { match e.kind() { io::ErrorKind::NotFound => tracing::error!("mkcert is not installed. See https://github.com/FiloSottile/mkcert#installation for installation instructions."), - e => tracing::error!("an error occured while generating mkcert certificates: {}", e.to_string()), + e => tracing::error!("an error occurred while generating mkcert certificates: {}", e.to_string()), }; return Err("failed to generate mkcert certificates".into()); }