Skip to content

Commit 75062f3

Browse files
committed
oops
1 parent 9a5d40c commit 75062f3

File tree

1 file changed

+3
-3
lines changed
  • crates/bevy_ecs/src/world

1 file changed

+3
-3
lines changed

crates/bevy_ecs/src/world/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,22 +103,22 @@ impl World {
103103
WorldCell::new(self)
104104
}
105105

106-
/// Registers a new component using the given [ComponentDescriptor]. Components do not need to be manually
106+
/// Registers a new component using the given [DataLayout]. Components do not need to be manually
107107
/// registered. This just provides a way to override default configuration. Attempting to register a component
108108
/// with a type that has already been used by [World] will result in an error.
109109
///
110110
/// The default component storage type can be overridden like this:
111111
///
112112
/// ```
113-
/// use bevy_ecs::{component::{ComponentDescriptor, StorageType}, world::World};
113+
/// use bevy_ecs::{component::{DataLayout, StorageType}, world::World};
114114
///
115115
/// struct Position {
116116
/// x: f32,
117117
/// y: f32,
118118
/// }
119119
///
120120
/// let mut world = World::new();
121-
/// world.register_component(ComponentDescriptor::new::<Position>(StorageType::SparseSet)).unwrap();
121+
/// world.register_component(DataLayout::from_generic::<Position>(StorageType::SparseSet)).unwrap();
122122
/// ```
123123
pub fn register_component(
124124
&mut self,

0 commit comments

Comments
 (0)