]> Cypherpunks repositories - gostls13.git/commit
cmd/godoc: fix minor bug in FormatSelections.
authorPaul Chang <paulchang@google.com>
Fri, 28 Sep 2012 21:19:43 +0000 (14:19 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 28 Sep 2012 21:19:43 +0000 (14:19 -0700)
commit7c8e26ee2f47541dbc5865e00bf1862b449a1b64
tree5a26b125604f6ca685e21da9c79dca08a70cd9ce
parent32eb110277c02f2d6f7f86c658ebd4c84ca19072
cmd/godoc: fix minor bug in FormatSelections.

FormatSelections tries to call a nil function value if lw is nil
and the final entry in the selections array is non-nil. Luckily,
this doesn't actually happen in practice since godoc doesn't use
this combination (no line numbers, but with selections).

R=gri
CC=gobot, golang-dev
https://golang.org/cl/6488106
src/cmd/godoc/format.go