Skip to content

Commit 2c72d53

Browse files
authored
docs: fix some comments (#701)
Signed-off-by: pudongair <744355276@qq.com>
1 parent 1d551ed commit 2c72d53

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

x/vesting/module.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func (AppModuleBasic) Name() string {
4444
return types.ModuleName
4545
}
4646

47-
// RegisterCodec registers the module's types with the given codec.
47+
// RegisterLegacyAminoCodec registers the module's types with the given codec.
4848
func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
4949
types.RegisterLegacyAminoCodec(cdc)
5050
}

x/vesting/types/period.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func (p Periods) TotalDuration() time.Duration {
3131
return time.Duration(totalLen) * time.Second
3232
}
3333

34-
// TotalDuration returns the sum of coins for the period.
34+
// TotalAmount returns the sum of coins for the period.
3535
func (p Periods) TotalAmount() sdk.Coins {
3636
total := sdk.Coins{}
3737
for _, period := range p {

0 commit comments

Comments
 (0)