1515// along with Substrate. If not, see <http://www.gnu.org/licenses/>.
1616
1717//! State database maintenance. Handles finalization and pruning in the database. The input to
18- //! this module is a `ChangeSet` which is basicall a list of key-value pairs (trie nodes) that
18+ //! this module is a `ChangeSet` which is basically a list of key-value pairs (trie nodes) that
1919//! were added or deleted during block execution.
2020//!
2121//! # Finalization.
@@ -94,7 +94,7 @@ impl<E: fmt::Debug> fmt::Debug for Error<E> {
9494pub struct ChangeSet < H : Hash > {
9595 /// Inserted nodes.
9696 pub inserted : Vec < ( H , DBValue ) > ,
97- /// Delted nodes.
97+ /// Deleted nodes.
9898 pub deleted : Vec < H > ,
9999}
100100
@@ -108,7 +108,7 @@ pub struct CommitSet<H: Hash> {
108108 pub meta : ChangeSet < Vec < u8 > > ,
109109}
110110
111- /// Pruning contraints . If none are specified pruning is
111+ /// Pruning constraints . If none are specified pruning is
112112#[ derive( Default , Debug , Clone ) ]
113113pub struct Constraints {
114114 /// Maximum blocks. Defaults to 0 when unspecified, effectively keeping only unfinalized states.
@@ -187,7 +187,7 @@ impl<BlockHash: Hash, Key: Hash> StateDbSync<BlockHash, Key> {
187187 match self . mode {
188188 PruningMode :: ArchiveAll => {
189189 changeset. deleted . clear ( ) ;
190- // write changes immediatelly
190+ // write changes immediately
191191 CommitSet {
192192 data : changeset,
193193 meta : Default :: default ( ) ,
0 commit comments