Skip to content

Commit 9082863

Browse files
authored
chore: fix grammar and typos in types package comments (#3467)
Signed-off-by: fmterrors <fmterrors@outlook.com>
1 parent 120fde9 commit 9082863

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎types/data.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func (d *Data) Time() time.Time {
110110
return time.Unix(0, int64(d.Metadata.Time))
111111
}
112112

113-
// Verify Verifies a new, untrusted block against a trusted block.
113+
// Verify a new, untrusted block against a trusted block.
114114
func (d *Data) Verify(untrustedData *Data) error {
115115
if untrustedData == nil {
116116
return errors.New("untrusted block cannot be nil")

‎types/header.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ type BaseHeader struct {
5656
ChainID string
5757
}
5858

59-
// Header defines the structure of Evolve block header.
59+
// Header defines the structure of an Evolve block header.
6060
type Header struct {
6161
BaseHeader
6262
// Block and App version

‎types/state.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ var (
3838
ErrInvalidLastAppHash = errors.New("invalid last app hash")
3939
)
4040

41-
// State contains information about current state of the blockchain.
41+
// State contains information about the current state of the blockchain.
4242
type State struct {
4343
Version Version
4444

0 commit comments

Comments
 (0)