Skip to content

Commit

Permalink
docs: Fix order in SortForUpgrade example
Browse files Browse the repository at this point in the history
  • Loading branch information
sdboyer committed Jan 28, 2018
1 parent 2721097 commit 18504a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gps/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ func compareVersionType(l, r Version) int {
//
// Sorting for upgrade will result in the following slice.
//
// [v1.1.0 v1.0.0 v1.1.0-alpha1 footag devel master f6e74e8d]
// [v1.1.0 v1.0.0 v1.1.0-alpha1 master devel footag f6e74e8d]
func SortForUpgrade(vl []Version) {
sort.Sort(upgradeVersionSorter(vl))
}
Expand Down

0 comments on commit 18504a2

Please sign in to comment.