]> Cypherpunks repositories - gostls13.git/commitdiff
sort: fix grammar in updated Less comment
authorzikaeroh <zikaeroh@gmail.com>
Sat, 17 Oct 2020 07:25:58 +0000 (00:25 -0700)
committerIan Lance Taylor <iant@golang.org>
Sat, 17 Oct 2020 22:58:33 +0000 (22:58 +0000)
The rewritten comment didn't sound right to my ears. Tweak it to be
grammatically correct.

Change-Id: Iae7d9f8810fff78cfd964bb3117099bce4479c14
Reviewed-on: https://go-review.googlesource.com/c/go/+/263180
Reviewed-by: Robert Griesemer <gri@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Robert Griesemer <gri@golang.org>

src/sort/sort.go

index 75e03435e04fa54f4f52b745df59dd0c1711d956..cbaa8c3aac20f187acb42aa11a3f98e44bd6df5c 100644 (file)
@@ -27,7 +27,7 @@ type Interface interface {
        //
        // Note that floating-point comparison (the < operator on float32 or float64 values)
        // is not a transitive ordering when not-a-number (NaN) values are involved.
-       // See Float64Slice.Less a correctly implementation for floating-point values.
+       // See Float64Slice.Less for a correct implementation for floating-point values.
        Less(i, j int) bool
 
        // Swap swaps the elements with indexes i and j.