Skip to content

Commit a00f778

Browse files
committed
Fix doc error
1 parent fcad714 commit a00f778

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/bevy_reflect/src/type_info.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ use std::any::{Any, TypeId};
3737
/// static CELL: NonGenericTypeInfoCell = NonGenericTypeInfoCell::new();
3838
/// CELL.get_or_set(|| {
3939
/// let fields = [
40-
/// NamedField::new::<usize, _>("foo"),
41-
/// NamedField::new::<(f32, f32), _>("bar"),
40+
/// NamedField::new::<usize >("foo"),
41+
/// NamedField::new::<(f32, f32) >("bar"),
4242
/// ];
4343
/// let info = StructInfo::new::<Self>("MyStruct", &fields);
4444
/// TypeInfo::Struct(info)

crates/bevy_reflect/src/utility.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use std::any::{Any, TypeId};
2727
/// fn type_info() -> &'static TypeInfo {
2828
/// static CELL: NonGenericTypeInfoCell = NonGenericTypeInfoCell::new();
2929
/// CELL.get_or_set(|| {
30-
/// let fields = [NamedField::new::<i32, _>("bar")];
30+
/// let fields = [NamedField::new::<i32>("bar")];
3131
/// let info = StructInfo::new::<Self>("Foo", &fields);
3232
/// TypeInfo::Struct(info)
3333
/// })

0 commit comments

Comments
 (0)