Skip to content

Commit

Permalink
rename to String()
Browse files Browse the repository at this point in the history
  • Loading branch information
vgonkivs committed Dec 13, 2024
1 parent c639f14 commit 2114715
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions share/shwap/row.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (r Row) MarshalJSON() ([]byte, error) {
Side string `json:"side"`
}{
Shares: r.halfShares,
Side: r.side.ToString(),
Side: r.side.String(),
}
return json.Marshal(&jsonRow)
}
Expand Down Expand Up @@ -184,7 +184,7 @@ func sideFromProto(side pb.Row_HalfSide) RowSide {
return Right
}

func (s RowSide) ToString() string {
func (s RowSide) String() string {
switch s {
case Left:
return "LEFT"
Expand Down

0 comments on commit 2114715

Please sign in to comment.