Skip to content

Commit

Permalink
fix Cards.MarshalText() build error
Browse files Browse the repository at this point in the history
  • Loading branch information
zchenyu committed Apr 18, 2021
1 parent 9dfc6df commit a9cd225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion card.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func NewCards(s string) []Card {
}

func (c *Card) MarshalText() ([]byte, error) {
return []byte(r.String()), nil
return []byte(c.String()), nil
}

func (c *Card) MarshalJSON() ([]byte, error) {
Expand Down

0 comments on commit a9cd225

Please sign in to comment.