Fix some typos in the documentation/examples for reactive store. (#3924)

This commit is contained in:
Eric Roman
2025-05-03 17:50:13 -07:00
committed by GitHub
parent 308568e520
commit 61bf87439a
2 changed files with 5 additions and 5 deletions

View File

@@ -56,12 +56,12 @@
//!
//! # if false { // don't run effect in doctests
//! Effect::new(move |_| {
//! // you can access individual store withs field a getter
//! // you can access individual store fields with a getter
//! println!("todos: {:?}", &*store.todos().read());
//! });
//! # }
//!
//! // won't notify the effect that listen to `todos`
//! // won't notify the effect that listens to `todos`
//! store.todos().write().push(Todo {
//! label: "Test".to_string(),
//! completed: false,
@@ -69,7 +69,7 @@
//! ```
//! ### Generated traits
//! The [`Store`](macro@Store) macro generates traits for each `struct` to which it is applied. When working
//! within a single file more module, this is not an issue. However, when working with multiple modules
//! within a single file or module, this is not an issue. However, when working with multiple modules
//! or files, one needs to `use` the generated traits. The general pattern is that for each `struct`
//! named `Foo`, the macro generates a trait named `FooStoreFields`. For example:
//! ```rust