Merge pull request #2027 from striezel-stash/fix-typos

fix some typos
This commit is contained in:
David Tolnay 2021-05-15 10:14:13 -07:00 committed by GitHub
commit 0c303d85d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1007,7 +1007,7 @@ pub trait Deserializer<'de>: Sized {
/// `Deserializer`. /// `Deserializer`.
/// ///
/// If the `Visitor` would benefit from taking ownership of `String` data, /// If the `Visitor` would benefit from taking ownership of `String` data,
/// indiciate this to the `Deserializer` by using `deserialize_string` /// indicate this to the `Deserializer` by using `deserialize_string`
/// instead. /// instead.
fn deserialize_str<V>(self, visitor: V) -> Result<V::Value, Self::Error> fn deserialize_str<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where where

View File

@ -23,7 +23,7 @@ pub struct Container<'a> {
/// The fields of a struct or enum. /// The fields of a struct or enum.
/// ///
/// Analagous to `syn::Data`. /// Analogous to `syn::Data`.
pub enum Data<'a> { pub enum Data<'a> {
Enum(Vec<Variant<'a>>), Enum(Vec<Variant<'a>>),
Struct(Style, Vec<Field<'a>>), Struct(Style, Vec<Field<'a>>),