fix typo varient -> variant (#2056)
This commit is contained in:
1 parent
29b9375fbd
commit
a4de322821
4 files changed
+46
-46
No files matched your search
@@ -108,7 +108,7 @@ type AttributeWatchers<V> = Arc<RwLock<Vec<Box<dyn AttributeWatcher<V> + Send +
|
||||
/// 4) Call [RealDom::update_state] to update the state of incrementally computed values on each node
|
||||
///
|
||||
/// # Custom attribute values
|
||||
/// To allow custom values to be passed into attributes implement FromAnyValue on a type that can represent your custom value and specify the V generic to be that type. If you have many different custom values, it can be useful to use a enum type to represent the varients.
|
||||
/// To allow custom values to be passed into attributes implement FromAnyValue on a type that can represent your custom value and specify the V generic to be that type. If you have many different custom values, it can be useful to use a enum type to represent the variants.
|
||||
pub struct RealDom<V: FromAnyValue + Send + Sync = ()> {
|
||||
pub(crate) world: World,
|
||||
nodes_listening: FxHashMap<String, FxHashSet<NodeId>>,
|
||||
|
||||
Reference in new issue
Block a user