prysmaticlabs / prysm

Documentation of an exported function should start with the function’s name GO-D5001
Documentation
Minor
2 occurrences in this check
comment on exported function CopyAttestation should be of the form "CopyAttestation ..."
177	SetSignature(sig []byte)
178}
179
180// TODO: this is ugly. The proper way to do this is to create a Copy() function on the interface and implement it. But this results in a circular dependency.181// CopyAttestation copies the provided attestation object.
182func CopyAttestation(att Attestation) Attestation {
183	a, ok := att.(*ethpb.Attestation)
comment on exported function CommitteeIndices should be of the form "CommitteeIndices ..."
295	return UnshuffleList(indices, seed)
296}
297
298// TODO: doc299func CommitteeIndices(committeeBits bitfield.Bitlist) []primitives.CommitteeIndex {
300	indices := committeeBits.BitIndices()
301	committeeIndices := make([]primitives.CommitteeIndex, len(indices))