From 3eb9d5d0e18c32c203001dc91f79ef80ca9b93a6 Mon Sep 17 00:00:00 2001 From: Eric Paris Date: Tue, 24 Nov 2015 11:13:49 -0500 Subject: [PATCH] Fix default comment for Direction in issue lists Both: https://developer.github.com/v3/issues/#list-issues https://developer.github.com/v3/issues/#list-issues-for-a-repository State that the default is `desc` for direction. (As does my results). So update the comment. --- github/issues.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github/issues.go b/github/issues.go index 14fcb7f..a60cede 100644 --- a/github/issues.go +++ b/github/issues.go @@ -76,7 +76,7 @@ type IssueListOptions struct { Sort string `url:"sort,omitempty"` // Direction in which to sort issues. Possible values are: asc, desc. - // Default is "asc". + // Default is "desc". Direction string `url:"direction,omitempty"` // Since filters issues by time. @@ -170,7 +170,7 @@ type IssueListByRepoOptions struct { Sort string `url:"sort,omitempty"` // Direction in which to sort issues. Possible values are: asc, desc. - // Default is "asc". + // Default is "desc". Direction string `url:"direction,omitempty"` // Since filters issues by time.