Skip to content

Commit

Permalink
pkg/list/sort: fix syntax in docs
Browse files Browse the repository at this point in the history
Closes #1668

Signed-off-by: Aman Karmani <[email protected]>
Change-Id: Ia3067a0ba770aaaffbdaab5274ecdead1b5150cc
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/537153
Reviewed-by: Paul Jolly <[email protected]>
  • Loading branch information
tmm1 authored and myitcv committed Apr 26, 2022
1 parent db3e6ac commit 00c5ddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/list/sort.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (s *valueSorter) Less(i, j int) bool {
//
// Sort([2, 3, 1], list.Ascending)
//
// Sort{{a: 2}, {a: 3}, {a: 1}, {x: {}, y: {}, less: x.a < y.a}}
// Sort([{a: 2}, {a: 3}, {a: 1}], {x: {}, y: {}, less: x.a < y.a})
//
func Sort(list []cue.Value, cmp cue.Value) (sorted []cue.Value, err error) {
s := valueSorter{list, cmp, nil}
Expand Down

0 comments on commit 00c5ddf

Please sign in to comment.