Skip to content

Commit 3c51d64

Browse files
committed
Fix swapped type params in doc
1 parent dd5a1e5 commit 3c51d64

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ keywords = ["bevy", "rapier", "bevy-inspector-egui"]
88
categories = ["game-development"]
99
repository = "https://github.com/devildahu/bevy_mod_component_mirror"
1010
exclude = ["assets", ".github"]
11-
version = "0.2.0"
11+
version = "0.2.1"
1212
edition = "2021"
1313

1414
[features]

Readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ If you wish to mirror other components, you need to do the following:
5555
- Create a `Component` (eg: `ForeignMirror`)
5656
- Implement the `Mirror` trait for that component.
5757
- Implement `From<&'a Foreign> for ForeignMirror`
58-
- Add `MirrorPlugin::<ForeignMirror, Foreign>::new()` to your `app`
58+
- Add `MirrorPlugin::<Foreign, ForeignMirror>::new()` to your `app`
5959

6060
```rust
6161
use bevy_mod_component_mirror::{Mirror, MirrorPlugin};
@@ -116,7 +116,7 @@ bevy_mod_component_mirror = { version = "<fill in>", default-features = false }
116116

117117
| bevy | bevy_rapier3d | bevy_mod_component_mirror |
118118
|------|---------------|---------------------------|
119-
| 0.9 | 0.20.0 | 0.2.0 |
119+
| 0.9 | 0.20.0 | 0.2.1 |
120120

121121
## License
122122

src/mirror.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use bevy::{prelude::*, reflect::GetTypeRegistration};
88
/// - Create a `Component` (eg: `ForeignMirror`)
99
/// - Implement the `Mirror` trait for that component.
1010
/// - Implement `From<&'a Foreign> for ForeignMirror`
11-
/// - Add `MirrorPlugin::<ForeignMirror, Foreign>::new()` to your `app`
11+
/// - Add `MirrorPlugin::<Foreign, ForeignMirror>::new()` to your `app`
1212
///
1313
/// ```rust
1414
/// use bevy_mod_component_mirror::{Mirror, MirrorPlugin};

0 commit comments

Comments
 (0)