]> Cypherpunks repositories - gostls13.git/commit
cmd/doc: search for packages in the two-arg case
authorRob Pike <r@golang.org>
Mon, 28 Aug 2017 05:33:11 +0000 (15:33 +1000)
committerRob Pike <r@golang.org>
Mon, 28 Aug 2017 22:15:58 +0000 (22:15 +0000)
commite3442b4ee85a0a491e9326593c2e8fc762337337
tree5cb9b9cd42c1166b8c19e9062f250515eb23f877
parent053840dc00d9ccca93f8e44dd622c08235fece5e
cmd/doc: search for packages in the two-arg case

When given one argument, as in

go doc binary.BigEndian

doc would search for the package, but when given two, as in

go doc binary BigEndian

it would not. Fix the inconsistency.

Fixes #18697
Fixes #18664

Change-Id: Ib59dc483e8d4f91e6061c77a5ec24d0a50e115f0
Reviewed-on: https://go-review.googlesource.com/59413
Reviewed-by: Aliaksandr Valialkin <valyala@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/doc/doc_test.go
src/cmd/doc/main.go