File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -153,14 +153,14 @@ use thiserror::Error;
153
153
/// #[derive(Component)]
154
154
/// #[require(C(init_c))]
155
155
/// struct A;
156
- ///
156
+ ///
157
157
/// #[derive(Component, PartialEq, Eq, Debug)]
158
158
/// #[require(C(|| C(20)))]
159
159
/// struct B;
160
160
///
161
161
/// #[derive(Component, PartialEq, Eq, Debug)]
162
162
/// struct C(usize);
163
- ///
163
+ ///
164
164
/// fn init_c() -> C {
165
165
/// C(10)
166
166
/// }
@@ -169,7 +169,7 @@ use thiserror::Error;
169
169
/// // This will implicitly also insert C with the init_c() constructor
170
170
/// let id = world.spawn(A).id();
171
171
/// assert_eq!(&C(10), world.entity(id).get::<C>().unwrap());
172
- ///
172
+ ///
173
173
/// // This will implicitly also insert C with the `|| C(20)` constructor closure
174
174
/// let id = world.spawn(B).id();
175
175
/// assert_eq!(&C(20), world.entity(id).get::<C>().unwrap());
You can’t perform that action at this time.
0 commit comments