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 19, 2022
1 parent d00d225 commit 786b42c
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 786b42c

Please sign in to comment.