Skip to content

Commit

Permalink
stop mixing tabs and spaces in the godoc
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mvdan committed Aug 15, 2019
1 parent f6d6f21 commit c956994
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions example_test.go
Expand Up @@ -341,9 +341,9 @@ func ExampleByJSPath() {

// Output:
// Outer HTML:
//<html><head></head><body>
// <div id="content">cool content</div>
//</body></html>
// <html><head></head><body>
// <div id="content">cool content</div>
// </body></html>
}

func Example_documentDump() {
Expand Down
14 changes: 7 additions & 7 deletions query.go
Expand Up @@ -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".
Expand All @@ -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
//
Expand Down

0 comments on commit c956994

Please sign in to comment.