Merge pull request #468 from kianmeng/fix-typos

Fix typos
master
Eric Huss 2022-07-31 14:39:31 -07:00 committed by GitHub
commit cf867939ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
// uses this data structure for arrays as well as tables,
// 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 lists are ordered, which we exploit in the search code by using
// bisection.
@ -1865,7 +1865,7 @@ impl<'a> Deserializer<'a> {
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
/// 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)]
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)]
ArrayMixedType,
@ -151,7 +151,7 @@ pub enum Error {
}
#[derive(Debug, Default, Clone)]
/// Internal place for holding array setings
/// Internal place for holding array settings
struct ArraySettings {
indent: usize,
trailing_comma: bool,

View File

@ -7,7 +7,7 @@
[group] # Comment
answer = 42 # Comment
# no-extraneous-keys-please = 999
# Inbetween comment.
# In between comment.
more = [ # Comment
# What about multiple # comments?
# Can you handle it?