Commit 646a27bd authored by David Symonds's avatar David Symonds

Build fix: fix typo in sort pkg.

APPROVED=rsc
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=34016
CL=34022
parent 25caf18a
...@@ -164,7 +164,7 @@ func (p FloatArray) Less(i, j int) bool { return p[i] < p[j]; } ...@@ -164,7 +164,7 @@ func (p FloatArray) Less(i, j int) bool { return p[i] < p[j]; }
func (p FloatArray) Swap(i, j int) { p[i], p[j] = p[j], p[i]; } func (p FloatArray) Swap(i, j int) { p[i], p[j] = p[j], p[i]; }
// Sort is a convenience method. // Sort is a convenience method.
ffunc (p FloatArray) Sort() { Sort(p); } func (p FloatArray) Sort() { Sort(p); }
// StringArray attaches the methods of SortInterface to []string, sorting in increasing order. // StringArray attaches the methods of SortInterface to []string, sorting in increasing order.
...@@ -175,7 +175,7 @@ func (p StringArray) Less(i, j int) bool { return p[i] < p[j]; } ...@@ -175,7 +175,7 @@ func (p StringArray) Less(i, j int) bool { return p[i] < p[j]; }
func (p StringArray) Swap(i, j int) { p[i], p[j] = p[j], p[i]; } func (p StringArray) Swap(i, j int) { p[i], p[j] = p[j], p[i]; }
// Sort is a convenience method. // Sort is a convenience method.
ffunc (p StringArray) Sort() { Sort(p); } func (p StringArray) Sort() { Sort(p); }
// Convenience wrappers for common cases // Convenience wrappers for common cases
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment