Skip to content

Commit

Permalink
Fix doc error
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGVSV committed Sep 14, 2022
1 parent 40df5e2 commit 86f9cab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_reflect/src/type_info.rs
Expand Up @@ -37,8 +37,8 @@ use std::any::{Any, TypeId};
/// static CELL: NonGenericTypeInfoCell = NonGenericTypeInfoCell::new();
/// CELL.get_or_set(|| {
/// let fields = [
/// NamedField::new::<usize, _>("foo"),
/// NamedField::new::<(f32, f32), _>("bar"),
/// NamedField::new::<usize >("foo"),
/// NamedField::new::<(f32, f32) >("bar"),
/// ];
/// let info = StructInfo::new::<Self>("MyStruct", &fields);
/// TypeInfo::Struct(info)
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_reflect/src/utility.rs
Expand Up @@ -27,7 +27,7 @@ use std::any::{Any, TypeId};
/// fn type_info() -> &'static TypeInfo {
/// static CELL: NonGenericTypeInfoCell = NonGenericTypeInfoCell::new();
/// CELL.get_or_set(|| {
/// let fields = [NamedField::new::<i32, _>("bar")];
/// let fields = [NamedField::new::<i32>("bar")];
/// let info = StructInfo::new::<Self>("Foo", &fields);
/// TypeInfo::Struct(info)
/// })
Expand Down

0 comments on commit 86f9cab

Please sign in to comment.