Skip to content

Commit b0085a7

Browse files
authored
0.15 release notes: Fix a few minor formatting issues (#1877)
1 parent 4fca886 commit b0085a7

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

release-content/0.15/release-notes/12770_Implement_gamepads_as_entities.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,24 @@ fn gamepad_system(
1818
if button_inputs.just_pressed(
1919
GamepadButton::new(gamepad, GamepadButtonType::South)
2020
) {
21-
println!("just pressed South");
22-
}
23-
21+
info!("just pressed South");
22+
}
23+
2424
let right_trigger = button_axes
2525
.get(GamepadButton::new(
2626
gamepad,
2727
GamepadButtonType::RightTrigger2,
2828
))
2929
.unwrap();
3030
if right_trigger.abs() > 0.01 {
31-
info!("RightTrigger2 value is {}", right_trigger);
31+
info!("RightTrigger2 value is {}", right_trigger);
3232
}
3333

3434
let left_stick_x = axes
3535
.get(GamepadAxis::new(gamepad, GamepadAxisType::LeftStickX))
3636
.unwrap();
3737
if left_stick_x.abs() > 0.01 {
38-
info!("LeftStickX value is {}", left_stick_x);
38+
info!("LeftStickX value is {}", left_stick_x);
3939
}
4040
}
4141
}
@@ -46,18 +46,18 @@ In 0.15, we can write this much more simply as:
4646
```rust
4747
fn gamepad_system(gamepads: Query<&Gamepad>) {
4848
for gamepad in &gamepads {
49-
if gamepad.just_pressed(GamepadButton::South) {
49+
if gamepad.just_pressed(GamepadButton::South) {
5050
println!("just pressed South");
51-
}
52-
51+
}
52+
5353
let right_trigger = gamepad.get(GamepadButton::RightTrigger2).unwrap();
5454
if right_trigger.abs() > 0.01 {
55-
info!("RightTrigger2 value is {}", right_trigger);
55+
info!("RightTrigger2 value is {}", right_trigger);
5656
}
5757

5858
let left_stick_x = gamepad.get(GamepadAxis::LeftStickX).unwrap();
5959
if left_stick_x.abs() > 0.01 {
60-
info!("LeftStickX value is {}", left_stick_x);
60+
info!("LeftStickX value is {}", left_stick_x);
6161
}
6262
}
6363
}

release-content/0.15/release-notes/5772_bevy_reflect_Add_Reflectable_trait.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
`bevy_reflect`] is powered by many different traits working together
1+
[`bevy_reflect`] is powered by many different traits working together
22
to provide the full reflection API. These include traits like [`Reflect`], but also other traits
33
like [`TypePath`], [`Typed`], and [`GetTypeRegistration`].
44

@@ -13,4 +13,4 @@ supertraits of `Reflectable`, allowing it to be used in place of all of them whe
1313
[`TypePath`]: https://docs.rs/bevy_reflect/0.15/bevy_reflect/trait.TypePath.html
1414
[`Typed`]: https://docs.rs/bevy_reflect/0.15/bevy_reflect/trait.Typed.html
1515
[`GetTypeRegistration`]: https://docs.rs/bevy_reflect/0.15/bevy_reflect/trait.GetTypeRegistration.html
16-
[`Reflectable`]: https://docs.rs/bevy_reflect/0.15/bevy_reflect/trait.Reflectable.html
16+
[`Reflectable`]: https://docs.rs/bevy_reflect/0.15/bevy_reflect/trait.Reflectable.html

0 commit comments

Comments
 (0)