diff --git a/src/de.rs b/src/de.rs index 40d88ae..fbc6009 100644 --- a/src/de.rs +++ b/src/de.rs @@ -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 diff --git a/src/ser.rs b/src/ser.rs index 90c5acf..2a13d4f 100644 --- a/src/ser.rs +++ b/src/ser.rs @@ -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, diff --git a/test-suite/tests/valid/comments-everywhere.toml b/test-suite/tests/valid/comments-everywhere.toml index 3dca74c..a13951d 100644 --- a/test-suite/tests/valid/comments-everywhere.toml +++ b/test-suite/tests/valid/comments-everywhere.toml @@ -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?