Skip to content

Commit

Permalink
use method name as first word in docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
p-offtermatt committed Sep 20, 2023
1 parent 4b4c76d commit d146505
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/json_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ func UnmarshalMapToActionType(rawAction json.RawMessage, actionTypeString string

// custom marshal and unmarshal functions for the chainstate that convert proposals to/from the auxiliary type with type info

// transform the ChainState into a ChainStateWithProposalTypes by adding type info to the proposals
// MarshalJSON transforms the ChainState into a ChainStateWithProposalTypes by adding type info to the proposals
func (c ChainState) MarshalJSON() ([]byte, error) {
type ProposalAndType struct {
RawProposal interface{}
Expand Down Expand Up @@ -311,7 +311,7 @@ func (c ChainState) MarshalJSON() ([]byte, error) {
return json.Marshal(chainStateWithProposalTypes)
}

// unmarshal the ChainStateWithProposalTypes into a ChainState by removing the type info from the proposals and getting back standard proposals
// UnmarshalJSON unmarshals the ChainStateWithProposalTypes into a ChainState by removing the type info from the proposals and getting back standard proposals
func (c *ChainState) UnmarshalJSON(data []byte) error {
type ProposalAndType struct {
RawProposal json.RawMessage
Expand Down

0 comments on commit d146505

Please sign in to comment.