From a00f778b5a8860784e6b42aa733224261a70f752 Mon Sep 17 00:00:00 2001 From: Gino Valente Date: Sun, 4 Sep 2022 19:29:45 -0700 Subject: [PATCH] Fix doc error --- crates/bevy_reflect/src/type_info.rs | 4 ++-- crates/bevy_reflect/src/utility.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/bevy_reflect/src/type_info.rs b/crates/bevy_reflect/src/type_info.rs index a954082f9b9c6d..9e5519d500ad62 100644 --- a/crates/bevy_reflect/src/type_info.rs +++ b/crates/bevy_reflect/src/type_info.rs @@ -37,8 +37,8 @@ use std::any::{Any, TypeId}; /// static CELL: NonGenericTypeInfoCell = NonGenericTypeInfoCell::new(); /// CELL.get_or_set(|| { /// let fields = [ -/// NamedField::new::("foo"), -/// NamedField::new::<(f32, f32), _>("bar"), +/// NamedField::new::("foo"), +/// NamedField::new::<(f32, f32) >("bar"), /// ]; /// let info = StructInfo::new::("MyStruct", &fields); /// TypeInfo::Struct(info) diff --git a/crates/bevy_reflect/src/utility.rs b/crates/bevy_reflect/src/utility.rs index c11d2a08cf7b50..1c331978f3f78f 100644 --- a/crates/bevy_reflect/src/utility.rs +++ b/crates/bevy_reflect/src/utility.rs @@ -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::("bar")]; +/// let fields = [NamedField::new::("bar")]; /// let info = StructInfo::new::("Foo", &fields); /// TypeInfo::Struct(info) /// })