Skip to content

Commit 66d3602

Browse files
authored
Fix most Zola highlighting warnings (#2257)
1 parent 51cf43a commit 66d3602

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

content/learn/migration-guides/0.11-to-0.12.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ Change all `Bezier` references to `CubicBezier`
753753

754754
If you were using Bevy’s `bevy_dylib` feature, use Bevy’s `dynamic_linking` feature instead.
755755

756-
```shell
756+
```sh
757757
# 0.11
758758
cargo run --features bevy/bevy_dylib
759759

content/learn/migration-guides/0.16-to-0.17.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ To match the previous behavior, just `unwrap()` the result.
190190

191191
Wayland has now been added to the default features of the `bevy` crate.
192192

193-
```text
193+
```
194194
called `Result::unwrap()` on an `Err` value:
195195
pkg-config exited with status code 1
196196
> PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags wayland-client
@@ -733,15 +733,15 @@ The `Combine::combine` method now takes an extra parameter that needs to be pass
733733

734734
Past releases had an incorrect `From<Rot2>` implementation for `Mat2`, constructing a rotation matrix in the following form:
735735

736-
```text
736+
```
737737
[ cos, sin ]
738738
[ -sin, cos ]
739739
```
740740

741741
This was actually the _inverse_ of the rotation matrix, resulting in clockwise rotation when transforming vectors.
742742
The correct version is the following:
743743

744-
```text
744+
```
745745
[ cos, -sin ]
746746
[ sin, cos ]
747747
```
@@ -819,7 +819,7 @@ If you were implementing a fallible system and had set `type Out = Result<T, Bev
819819

820820
If you have a system function that returns `Result` or `!` and are not restricting the return type, you may get type inference failures like this:
821821

822-
```text
822+
```
823823
error[E0283]: type annotations needed
824824
--> lib.rs:100:5
825825
|
@@ -832,7 +832,7 @@ note: multiple `impl`s satisfying `core::result::Result<(), bevy_error::BevyErro
832832

833833
or
834834

835-
```text
835+
```
836836
error[E0283]: type annotations needed
837837
--> lib.rs:100:11
838838
|
@@ -1101,7 +1101,7 @@ See the [full changelog here](https://github.com/gfx-rs/wgpu/blob/trunk/CHANGELO
11011101

11021102
When migrating shaders or other custom rendering code, you may encounter panics like:
11031103

1104-
```raw
1104+
```
11051105
wgpu error: Validation Error
11061106
11071107
Caused by:

release-content/0.15/migration-guides/12095_Add_features_to_switch_NativeActivity_and_GameActivity_usa.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
Before:
66

7-
```shell
7+
```sh
88
rustup target add aarch64-linux-android armv7-linux-androideabi
99
cargo install cargo-apk
1010
```
1111

1212
After:
1313

14-
```shell
14+
```sh
1515
rustup target add aarch64-linux-android
1616
cargo install cargo-ndk
1717
```
@@ -21,13 +21,13 @@ with the Gradle wrapper.
2121

2222
Before:
2323

24-
```shell
24+
```sh
2525
cargo apk build --package bevy_mobile_example
2626
```
2727

2828
After:
2929

30-
```shell
30+
```sh
3131
cargo ndk -t arm64-v8a -o android_example/app/src/main/jniLibs build --package bevy_mobile_example
3232
./android_example/gradlew build
3333
```

0 commit comments

Comments
 (0)