Merge pull request #18 from chansuke/fix-comment

Fix comment of notification API
This commit is contained in:
mattn 2017-04-17 12:28:52 +09:00 committed by GitHub
commit f181df17a0

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)