give examples better names to appease vet

This commit is contained in:
Daniel Martí 2019-04-02 13:51:47 +02:00
parent 896fbe60c2
commit ece2b3ab92

View File

@ -34,7 +34,7 @@ func ExampleTitle() {
// too slow, requiring internet access. // too slow, requiring internet access.
} }
func ExampleExecAllocatorOption() { func ExampleExecAllocator() {
dir, err := ioutil.TempDir("", "chromedp-example") dir, err := ioutil.TempDir("", "chromedp-example")
if err != nil { if err != nil {
panic(err) panic(err)
@ -77,7 +77,7 @@ func ExampleExecAllocatorOption() {
// DevToolsActivePort has 2 lines // DevToolsActivePort has 2 lines
} }
func ExampleManyTabs() { func ExampleNewContext_manyTabs() {
// new browser, first tab // new browser, first tab
ctx1, cancel := chromedp.NewContext(context.Background()) ctx1, cancel := chromedp.NewContext(context.Background())
defer cancel() defer cancel()