]> Cypherpunks repositories - gostls13.git/commit
go/scanner: Simplify ErrorList.Sort implementation.
authorDavid Symonds <dsymonds@golang.org>
Wed, 1 Apr 2015 21:24:35 +0000 (14:24 -0700)
committerDavid Symonds <dsymonds@golang.org>
Wed, 1 Apr 2015 21:32:47 +0000 (21:32 +0000)
commit9b696be08bd252c29de61740951dc8f0b115bfc4
treee6599bc8aea2f79bbc78a806d40567a4212062ae
parent919a6fbeab6e4eb73c2cca596ca79ae1a2abda34
go/scanner: Simplify ErrorList.Sort implementation.

It functions exactly the same, but this is the more common
style for these kinds of multi-key comparison functions,
and is more regular.

Change-Id: I46630948f893bcc96c05eb3d36eb82e1d97a6fa0
Reviewed-on: https://go-review.googlesource.com/8358
Reviewed-by: Robert Griesemer <gri@golang.org>
src/go/scanner/errors.go