@@ -11,7 +11,7 @@ use crate::{
11
11
} ,
12
12
} ;
13
13
14
- /// This trait describes versioned container items, fields ans variants in a
14
+ /// This trait describes versioned container items, fields and variants in a
15
15
/// common way.
16
16
///
17
17
/// Shared functionality is implemented in a single place. Code which cannot be
@@ -60,7 +60,7 @@ pub(crate) trait Attributes {
60
60
fn common_attrs ( & self ) -> & ItemAttributes ;
61
61
}
62
62
63
- /// This struct combines common common code for versioned fields and variants.
63
+ /// This struct combines common code for versioned fields and variants.
64
64
///
65
65
/// Most of the initial creation of a versioned field and variant are identical.
66
66
/// Currently, the following steps are unified:
@@ -106,10 +106,11 @@ where
106
106
let item_attrs = attrs. common_attrs_owned ( ) ;
107
107
108
108
// Constructing the action chain requires going through the actions
109
- // starting at the end, because the base container always represents the
110
- // latest (most up-to-date) version of that struct. That's why the
111
- // following code needs to go through the actions in reverse order, as
112
- // otherwise it is impossible to extract the item ident for each version.
109
+ // starting at the end, because the container definition always
110
+ // represents the latest (most up-to-date) version of that struct.
111
+ // That's why the following code needs to go through the actions in
112
+ // reverse order, as otherwise it is impossible to extract the item
113
+ // ident for each version.
113
114
114
115
// Deprecating an item is always the last state an item can end up in.
115
116
// For items which are not deprecated, the last change is either the
0 commit comments