From f3997647acba50002d59480970175eb028c4c941 Mon Sep 17 00:00:00 2001 From: Siyuan Han <47173566+hsyodyssey@users.noreply.github.com> Date: Fri, 12 Aug 2022 17:27:24 +0800 Subject: [PATCH] Fix typos (#11209) Co-authored-by: Nishant Das --- beacon-chain/core/epoch/epoch_processing.go | 2 +- consensus-types/wrapper/metadata.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/beacon-chain/core/epoch/epoch_processing.go b/beacon-chain/core/epoch/epoch_processing.go index fa05cf5280..7aea9b531f 100644 --- a/beacon-chain/core/epoch/epoch_processing.go +++ b/beacon-chain/core/epoch/epoch_processing.go @@ -185,7 +185,7 @@ func ProcessSlashings(state state.BeaconState, slashingMultiplier uint64) (state } } - // a callback is used here to apply the following actions to all validators + // a callback is used here to apply the following actions to all validators // below equally. increment := params.BeaconConfig().EffectiveBalanceIncrement minSlashing := math.Min(totalSlashing*slashingMultiplier, totalBalance) diff --git a/consensus-types/wrapper/metadata.go b/consensus-types/wrapper/metadata.go index f669af404e..b95fd51c35 100644 --- a/consensus-types/wrapper/metadata.go +++ b/consensus-types/wrapper/metadata.go @@ -23,7 +23,7 @@ func (m MetadataV0) SequenceNumber() uint64 { return m.md.SeqNumber } -// AttnetsBitfield retruns the bitfield stored in the metadata. +// AttnetsBitfield returns the bitfield stored in the metadata. func (m MetadataV0) AttnetsBitfield() bitfield.Bitvector64 { return m.md.Attnets } @@ -98,7 +98,7 @@ func (m MetadataV1) SequenceNumber() uint64 { return m.md.SeqNumber } -// AttnetsBitfield retruns the bitfield stored in the metadata. +// AttnetsBitfield returns the bitfield stored in the metadata. func (m MetadataV1) AttnetsBitfield() bitfield.Bitvector64 { return m.md.Attnets }