Skip to content

Commit 5c92ee5

Browse files
committed
Fix doctests
1 parent 291b5c0 commit 5c92ee5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/geometry.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ impl GeometryBuilder {
8888
/// let mut builder = GeometryBuilder::new();
8989
/// builder.add(&line).add(&rectangle);
9090
///
91-
/// commands.spawn(builder.build(
91+
/// commands.spawn_bundle(builder.build(
9292
/// ShapeColors::new(Color::ORANGE_RED),
9393
/// DrawMode::Fill(FillOptions::default()),
9494
/// Transform::default(),
@@ -125,7 +125,7 @@ impl GeometryBuilder {
125125
///
126126
/// fn some_system(commands: &mut Commands) {
127127
/// let line = shapes::Line(Vec2::ZERO, Vec2::new(10.0, 0.0));
128-
/// commands.spawn(GeometryBuilder::build_as(
128+
/// commands.spawn_bundle(GeometryBuilder::build_as(
129129
/// &line,
130130
/// ShapeColors::new(Color::ORANGE_RED),
131131
/// DrawMode::Fill(FillOptions::default()),

0 commit comments

Comments
 (0)