chore(docs): fix comments that do not start with the name of the exported element. (#20906)

This commit is contained in:
Tuan Tran
2024-07-10 06:00:36 +00:00
committed by GitHub
parent 61c36798d0
commit b5319483ed
13 changed files with 48 additions and 41 deletions
+1 -1
View File
@@ -896,7 +896,7 @@ func (d *LegacyDec) UnmarshalAmino(bz []byte) error { return d.Unmarshal(bz) }
// helpers
// test if two decimal arrays are equal
// LegacyDecsEqual return true if two decimal arrays are equal.
func LegacyDecsEqual(d1s, d2s []LegacyDec) bool {
if len(d1s) != len(d2s) {
return false
+1 -1
View File
@@ -521,7 +521,7 @@ func (i *Int) Size() int {
func (i Int) MarshalAmino() ([]byte, error) { return i.Marshal() }
func (i *Int) UnmarshalAmino(bz []byte) error { return i.Unmarshal(bz) }
// intended to be used with require/assert: require.True(IntEq(...))
// IntEq intended to be used with require/assert: require.True(IntEq(...))
func IntEq(t *testing.T, exp, got Int) (*testing.T, bool, string, string, string) {
t.Helper()
return t, exp.Equal(got), "expected:\t%v\ngot:\t\t%v", exp.String(), got.String()