]> Cypherpunks repositories - gostls13.git/commit
sort: make return value for 'not found' clearer in docs
authorRob Pike <r@golang.org>
Fri, 2 Nov 2012 23:17:34 +0000 (16:17 -0700)
committerRob Pike <r@golang.org>
Fri, 2 Nov 2012 23:17:34 +0000 (16:17 -0700)
commit20548b153f05528c0c58347a817fb3a3eee6cd0c
tree4eb51927d649a5dcf57eb6cbe859c13ab631096f
parentc46f1f40daad83c940e1b3c09f77b9867d598473
sort: make return value for 'not found' clearer in docs
It was well-defined but easy to miss that the return value for
"not found" is len(input) not -1 as many expect.

Fixes #4205.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/6820080
src/pkg/sort/search.go