Merge pull request #18 from chansuke/fix-comment

Fix comment of notification API
pull/17/head^2
mattn 2017-04-17 12:28:52 +09:00 committed by GitHub
commit f181df17a0
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ func (c *Client) GetNotifications(ctx context.Context) ([]*Notification, error)
return notifications, nil return notifications, nil
} }
// GetNotification return notifications. // GetNotifications return notification.
func (c *Client) GetNotification(ctx context.Context, id int64) (*Notification, error) { func (c *Client) GetNotification(ctx context.Context, id int64) (*Notification, error) {
var notification Notification var notification Notification
err := c.doAPI(ctx, http.MethodGet, fmt.Sprintf("/api/v1/notifications/%d", id), nil, &notification) err := c.doAPI(ctx, http.MethodGet, fmt.Sprintf("/api/v1/notifications/%d", id), nil, &notification)