From c956994840a529a4f213d4b27346bfeee1beec05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Thu, 15 Aug 2019 17:20:54 +0200 Subject: [PATCH] stop mixing tabs and spaces in the godoc godoc doesn't care about which leading whitespace is used, so it's best to not mix tabs in there. While at it, also space ExampleByJSPath's output, like the rest of the comments. We do have to mix tabs in there, as the output contains tabs. --- example_test.go | 6 +++--- query.go | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/example_test.go b/example_test.go index 5d34b96e..28af5605 100644 --- a/example_test.go +++ b/example_test.go @@ -341,9 +341,9 @@ func ExampleByJSPath() { // Output: // Outer HTML: - // - //
cool content
- // + // + //
cool content
+ // } func Example_documentDump() { diff --git a/query.go b/query.go index ed79e341..168c403a 100644 --- a/query.go +++ b/query.go @@ -45,7 +45,7 @@ type Selector struct { // // For example: // -// chromedp.Run(ctx, chromedp.SendKeys(`thing`, chromedp.ByID)) +// chromedp.Run(ctx, chromedp.SendKeys(`thing`, chromedp.ByID)) // // The above will perform a "SendKeys" action on the first element matching a // browser CSS query for "#thing". @@ -54,15 +54,15 @@ type Selector struct { // the primary way of automating Tasks in the browser. They are typically // written in the following form: // -// Action(selector[, parameter1, ...parameterN][,result][, queryOptions...]) +// Action(selector[, parameter1, ...parameterN][,result][, queryOptions...]) // // Where: // -// Action - the action to perform -// selector - element query selection (typically a string), that any matching node(s) will have the action applied -// parameter[1-N] - parameter(s) needed for the individual action (if any) -// result - pointer to a result (if any) -// queryOptions - changes how queries are executed, or how nodes are waited for (see below) +// Action - the action to perform +// selector - element query selection (typically a string), that any matching node(s) will have the action applied +// parameter[1-N] - parameter(s) needed for the individual action (if any) +// result - pointer to a result (if any) +// queryOptions - changes how queries are executed, or how nodes are waited for (see below) // // Query Options //