1
0
mirror of https://github.com/golang/go synced 2024-11-18 11:24:41 -07:00
go/internal/lsp/fuzzy
Rob Findley 6c983e6784 internal/lsp/fuzzy: fix return value on no match
The fuzzy matcher doc string says that it returns 0 on no match, but
this is in fact not true: it returns -1 on no match.

0 makes more sense, so fix the implementation rather than the docstring.

Change-Id: I997a6b5dcb1d7c25cc73b2c236d24647f9326c80
Reviewed-on: https://go-review.googlesource.com/c/tools/+/248417
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2020-08-28 15:37:48 +00:00
..
input_test.go internal/lsp: fix errors found by staticcheck 2020-03-19 19:20:54 +00:00
input.go internal/lsp: trim down the fuzzy matcher library 2019-10-22 20:51:43 +00:00
matcher_test.go internal/lsp/fuzzy: fix return value on no match 2020-08-28 15:37:48 +00:00
matcher.go internal/lsp/fuzzy: fix return value on no match 2020-08-28 15:37:48 +00:00