1
0
mirror of https://github.com/golang/go synced 2024-11-08 19:36:22 -07:00
go/src/cmd/doc
Rob Pike e3442b4ee8 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>
2017-08-28 22:15:58 +00:00
..
testdata
dirs.go
doc_test.go cmd/doc: search for packages in the two-arg case 2017-08-28 22:15:58 +00:00
main.go cmd/doc: search for packages in the two-arg case 2017-08-28 22:15:58 +00:00
pkg.go