minor spelling fixes

This commit is contained in:
Darren O'Connor 2022-11-13 21:14:40 +00:00 committed by mattn
parent 114537dcc0
commit 309dce6ff3
9 changed files with 62 additions and 62 deletions

View file

@ -6,13 +6,13 @@ import (
"net/url"
)
// Report hold information for mastodon report.
// Report holds information for a mastodon report.
type Report struct {
ID int64 `json:"id"`
ActionTaken bool `json:"action_taken"`
}
// GetReports return report of the current user.
// GetReports returns report of the current user.
func (c *Client) GetReports(ctx context.Context) ([]*Report, error) {
var reports []*Report
err := c.doAPI(ctx, http.MethodGet, "/api/v1/reports", nil, &reports, nil)