@@ -457,7 +457,7 @@ impl dyn PartialReflect {
457457 /// If the underlying value does not implement [`Reflect`]
458458 /// or is not of type `T`, returns `Err(self)`.
459459 ///
460- /// For remote types, `T` should be the type itself rather than the wraper type.
460+ /// For remote types, `T` should be the type itself rather than the wrapper type.
461461 pub fn try_downcast < T : Any > (
462462 self : Box < dyn PartialReflect > ,
463463 ) -> Result < Box < T > , Box < dyn PartialReflect > > {
@@ -471,7 +471,7 @@ impl dyn PartialReflect {
471471 /// If the underlying value does not implement [`Reflect`]
472472 /// or is not of type `T`, returns `Err(self)`.
473473 ///
474- /// For remote types, `T` should be the type itself rather than the wraper type.
474+ /// For remote types, `T` should be the type itself rather than the wrapper type.
475475 pub fn try_take < T : Any > ( self : Box < dyn PartialReflect > ) -> Result < T , Box < dyn PartialReflect > > {
476476 self . try_downcast ( ) . map ( |value| * value)
477477 }
@@ -481,7 +481,7 @@ impl dyn PartialReflect {
481481 /// If the underlying value does not implement [`Reflect`]
482482 /// or is not of type `T`, returns [`None`].
483483 ///
484- /// For remote types, `T` should be the type itself rather than the wraper type.
484+ /// For remote types, `T` should be the type itself rather than the wrapper type.
485485 pub fn try_downcast_ref < T : Any > ( & self ) -> Option < & T > {
486486 self . try_as_reflect ( ) ?. downcast_ref ( )
487487 }
@@ -491,7 +491,7 @@ impl dyn PartialReflect {
491491 /// If the underlying value does not implement [`Reflect`]
492492 /// or is not of type `T`, returns [`None`].
493493 ///
494- /// For remote types, `T` should be the type itself rather than the wraper type.
494+ /// For remote types, `T` should be the type itself rather than the wrapper type.
495495 pub fn try_downcast_mut < T : Any > ( & mut self ) -> Option < & mut T > {
496496 self . try_as_reflect_mut ( ) ?. downcast_mut ( )
497497 }
@@ -521,7 +521,7 @@ impl dyn Reflect {
521521 ///
522522 /// If the underlying value is not of type `T`, returns `Err(self)`.
523523 ///
524- /// For remote types, `T` should be the type itself rather than the wraper type.
524+ /// For remote types, `T` should be the type itself rather than the wrapper type.
525525 pub fn downcast < T : Any > ( self : Box < dyn Reflect > ) -> Result < Box < T > , Box < dyn Reflect > > {
526526 if self . is :: < T > ( ) {
527527 Ok ( self . into_any ( ) . downcast ( ) . unwrap ( ) )
@@ -534,7 +534,7 @@ impl dyn Reflect {
534534 ///
535535 /// If the underlying value is not of type `T`, returns `Err(self)`.
536536 ///
537- /// For remote types, `T` should be the type itself rather than the wraper type.
537+ /// For remote types, `T` should be the type itself rather than the wrapper type.
538538 pub fn take < T : Any > ( self : Box < dyn Reflect > ) -> Result < T , Box < dyn Reflect > > {
539539 self . downcast :: < T > ( ) . map ( |value| * value)
540540 }
@@ -548,7 +548,7 @@ impl dyn Reflect {
548548 /// to determine what type they represent. Represented types cannot be downcasted
549549 /// to, but you can use [`FromReflect`] to create a value of the represented type from them.
550550 ///
551- /// For remote types, `T` should be the type itself rather than the wraper type.
551+ /// For remote types, `T` should be the type itself rather than the wrapper type.
552552 ///
553553 /// [`FromReflect`]: crate::FromReflect
554554 #[ inline]
@@ -560,7 +560,7 @@ impl dyn Reflect {
560560 ///
561561 /// If the underlying value is not of type `T`, returns `None`.
562562 ///
563- /// For remote types, `T` should be the type itself rather than the wraper type.
563+ /// For remote types, `T` should be the type itself rather than the wrapper type.
564564 #[ inline]
565565 pub fn downcast_ref < T : Any > ( & self ) -> Option < & T > {
566566 self . as_any ( ) . downcast_ref :: < T > ( )
@@ -570,7 +570,7 @@ impl dyn Reflect {
570570 ///
571571 /// If the underlying value is not of type `T`, returns `None`.
572572 ///
573- /// For remote types, `T` should be the type itself rather than the wraper type.
573+ /// For remote types, `T` should be the type itself rather than the wrapper type.
574574 #[ inline]
575575 pub fn downcast_mut < T : Any > ( & mut self ) -> Option < & mut T > {
576576 self . as_any_mut ( ) . downcast_mut :: < T > ( )
0 commit comments