Skip to content

Commit fae2200

Browse files
authored
fixing line comment in 2d_shapes.rs example (bevyengine#12865)
# Objective - There is a little mistake in a line comment. ## Solution - Fixed the comment to correctly describe what happens in the documented calculation.
1 parent eb82ec0 commit fae2200

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/2d/2d_shapes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ fn setup(
4444
mesh: shape,
4545
material: materials.add(color),
4646
transform: Transform::from_xyz(
47-
// Distribute shapes from -X_EXTENT to +X_EXTENT.
47+
// Distribute shapes from -X_EXTENT/2 to +X_EXTENT/2.
4848
-X_EXTENT / 2. + i as f32 / (num_shapes - 1) as f32 * X_EXTENT,
4949
0.0,
5050
0.0,

0 commit comments

Comments
 (0)