Fix typos

This commit is contained in:
Kian-Meng Ang 2022-07-30 22:11:38 +08:00
parent 5552c32763
commit 3d3d63aa8e
3 changed files with 5 additions and 5 deletions

View file

@ -328,7 +328,7 @@ impl<'de, 'b> de::Deserializer<'de> for &'b mut Deserializer<'de> {
// by their index in the passed slice. We use a list as the implementation // by their index in the passed slice. We use a list as the implementation
// uses this data structure for arrays as well as tables, // uses this data structure for arrays as well as tables,
// so if any top level [[name]] array contains multiple entries, // so if any top level [[name]] array contains multiple entries,
// there are multiple entires in the list. // there are multiple entries in the list.
// The lookup is performed in the `SeqAccess` implementation of `MapVisitor`. // The lookup is performed in the `SeqAccess` implementation of `MapVisitor`.
// The lists are ordered, which we exploit in the search code by using // The lists are ordered, which we exploit in the search code by using
// bisection. // bisection.
@ -1865,7 +1865,7 @@ impl<'a> Deserializer<'a> {
Ok(result) Ok(result)
} }
/// Stores a value in the appropriate hierachical structure positioned based on the dotted key. /// Stores a value in the appropriate hierarchical structure positioned based on the dotted key.
/// ///
/// Given the following definition: `multi.part.key = "value"`, `multi` and `part` are /// Given the following definition: `multi.part.key = "value"`, `multi` and `part` are
/// intermediate parts which are mapped to the relevant fields in the deserialized type's data /// intermediate parts which are mapped to the relevant fields in the deserialized type's data

View file

@ -124,7 +124,7 @@ pub enum Error {
#[doc(hidden)] #[doc(hidden)]
KeyNewline, KeyNewline,
/// An array had to be homogenous, but now it is allowed to be heterogenous. /// An array had to be homogeneous, but now it is allowed to be heterogeneous.
#[doc(hidden)] #[doc(hidden)]
ArrayMixedType, ArrayMixedType,
@ -151,7 +151,7 @@ pub enum Error {
} }
#[derive(Debug, Default, Clone)] #[derive(Debug, Default, Clone)]
/// Internal place for holding array setings /// Internal place for holding array settings
struct ArraySettings { struct ArraySettings {
indent: usize, indent: usize,
trailing_comma: bool, trailing_comma: bool,