chore: fix some typos in comments (#2340)
Signed-off-by: alongdate <alongyear@outlook.com>
This commit is contained in:
1 parent
5ce91e1bfc
commit
a5b4ceed39
5 files changed
+5
-5
No files matched your search
@@ -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;
|
||||
|
||||
+1
-1
@@ -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());
|
||||
|
||||
|
||||
@@ -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::*;
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in new issue
Block a user