Fixed several typos. (#806)

* Fixed common typo in several struct names.

* Fixed minor doc typos.
This commit is contained in:
Rob 2020-11-06 20:11:12 -05:00 committed by GitHub
parent 35d4fca0d0
commit 06f95e9982
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 23 deletions

View file

@ -226,17 +226,17 @@ impl<'a, 'de> DeserializeSeed<'de> for DynamicPropertiesDeserializer<'a> {
where
D: serde::Deserializer<'de>,
{
deserializer.deserialize_map(DynamicPropertiesVisiter {
deserializer.deserialize_map(DynamicPropertiesVisitor {
registry: self.registry,
})
}
}
struct DynamicPropertiesVisiter<'a> {
struct DynamicPropertiesVisitor<'a> {
registry: &'a PropertyTypeRegistry,
}
impl<'a, 'de> Visitor<'de> for DynamicPropertiesVisiter<'a> {
impl<'a, 'de> Visitor<'de> for DynamicPropertiesVisitor<'a> {
type Value = DynamicProperties;
fn expecting(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result {
@ -272,7 +272,7 @@ impl<'a, 'de> DeserializeSeed<'de> for PropertyDeserializer<'a> {
})?;
registration.deserialize(deserializer, self.registry)
} else {
deserializer.deserialize_any(AnyPropVisiter {
deserializer.deserialize_any(AnyPropVisitor {
registry: self.registry,
})
}
@ -290,17 +290,17 @@ impl<'a, 'de> DeserializeSeed<'de> for SeqPropertyDeserializer<'a> {
where
D: serde::Deserializer<'de>,
{
deserializer.deserialize_seq(SeqPropertyVisiter {
deserializer.deserialize_seq(SeqPropertyVisitor {
registry: self.registry,
})
}
}
pub struct SeqPropertyVisiter<'a> {
pub struct SeqPropertyVisitor<'a> {
registry: &'a PropertyTypeRegistry,
}
impl<'a, 'de> Visitor<'de> for SeqPropertyVisiter<'a> {
impl<'a, 'de> Visitor<'de> for SeqPropertyVisitor<'a> {
type Value = DynamicProperties;
fn expecting(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result {
@ -339,17 +339,17 @@ impl<'a, 'de> DeserializeSeed<'de> for MapPropertyDeserializer<'a> {
where
D: serde::Deserializer<'de>,
{
deserializer.deserialize_map(MapPropertyVisiter {
deserializer.deserialize_map(MapPropertyVisitor {
registry: self.registry,
})
}
}
struct MapPropertyVisiter<'a> {
struct MapPropertyVisitor<'a> {
registry: &'a PropertyTypeRegistry,
}
impl<'a, 'de> Visitor<'de> for MapPropertyVisiter<'a> {
impl<'a, 'de> Visitor<'de> for MapPropertyVisitor<'a> {
type Value = DynamicProperties;
fn expecting(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result {
@ -373,11 +373,11 @@ impl<'a, 'de> Visitor<'de> for MapPropertyVisiter<'a> {
}
}
struct AnyPropVisiter<'a> {
struct AnyPropVisitor<'a> {
registry: &'a PropertyTypeRegistry,
}
impl<'a, 'de> Visitor<'de> for AnyPropVisiter<'a> {
impl<'a, 'de> Visitor<'de> for AnyPropVisitor<'a> {
type Value = Box<dyn Property>;
fn expecting(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result {

View file

@ -93,7 +93,7 @@ impl<'a, 'de> DeserializeSeed<'de> for SceneDeserializer<'a> {
D: serde::Deserializer<'de>,
{
let mut scene = DynamicScene::default();
scene.entities = deserializer.deserialize_seq(SceneEntitySeqVisiter {
scene.entities = deserializer.deserialize_seq(SceneEntitySeqVisitor {
property_type_registry: self.property_type_registry,
})?;
@ -101,11 +101,11 @@ impl<'a, 'de> DeserializeSeed<'de> for SceneDeserializer<'a> {
}
}
struct SceneEntitySeqVisiter<'a> {
struct SceneEntitySeqVisitor<'a> {
pub property_type_registry: &'a PropertyTypeRegistry,
}
impl<'a, 'de> Visitor<'de> for SceneEntitySeqVisiter<'a> {
impl<'a, 'de> Visitor<'de> for SceneEntitySeqVisitor<'a> {
type Value = Vec<Entity>;
fn expecting(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result {
@ -141,7 +141,7 @@ impl<'a, 'de> DeserializeSeed<'de> for SceneEntityDeserializer<'a> {
deserializer.deserialize_struct(
ENTITY_STRUCT,
&[ENTITY_FIELD_ENTITY, ENTITY_FIELD_COMPONENTS],
SceneEntityVisiter {
SceneEntityVisitor {
registry: self.property_type_registry,
},
)
@ -160,11 +160,11 @@ pub const ENTITY_FIELD_ENTITY: &str = "entity";
pub const ENTITY_FIELD_COMPONENTS: &str = "components";
#[derive(Debug)]
struct SceneEntityVisiter<'a> {
struct SceneEntityVisitor<'a> {
pub registry: &'a PropertyTypeRegistry,
}
impl<'a, 'de> Visitor<'de> for SceneEntityVisiter<'a> {
impl<'a, 'de> Visitor<'de> for SceneEntityVisitor<'a> {
type Value = Entity;
fn expecting(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result {
@ -222,17 +222,17 @@ impl<'a, 'de> DeserializeSeed<'de> for ComponentVecDeserializer<'a> {
where
D: serde::Deserializer<'de>,
{
deserializer.deserialize_seq(ComponentSeqVisiter {
deserializer.deserialize_seq(ComponentSeqVisitor {
registry: self.registry,
})
}
}
struct ComponentSeqVisiter<'a> {
struct ComponentSeqVisitor<'a> {
pub registry: &'a PropertyTypeRegistry,
}
impl<'a, 'de> Visitor<'de> for ComponentSeqVisiter<'a> {
impl<'a, 'de> Visitor<'de> for ComponentSeqVisitor<'a> {
type Value = Vec<DynamicProperties>;
fn expecting(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result {

View file

@ -40,7 +40,7 @@ Audio of mp3 format support.
### x11
Make GUI applications use X11 procotol. You could enable wayland feature to override this.
Make GUI applications use X11 protocol. You could enable wayland feature to override this.
## Optional Features
@ -54,7 +54,7 @@ For tracing wgpu.
### flac
FLAC audio fromat support. It's included in bevy_audio feature.
FLAC audio format support. It's included in bevy_audio feature.
### wav