Skip to content

Commit dbab047

Browse files
committed
all: gofmt
Gofmt to update doc comments to the new formatting. For golang/go#51082. Change-Id: Ic98f647623f234cf5d36309c6204683e151820d7 Reviewed-on: https://go-review.googlesource.com/c/example/+/399596 Run-TryBot: Russ Cox <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Auto-Submit: Russ Cox <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent 24f86ea commit dbab047

File tree

10 files changed

+15
-12
lines changed

10 files changed

+15
-12
lines changed

gotypes/defsuses/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func main() {
1919
}
2020
`
2121

22-
//!+
22+
// !+
2323
func PrintDefsUses(fset *token.FileSet, files ...*ast.File) error {
2424
conf := types.Config{Importer: importer.Default()}
2525
info := &types.Info{

gotypes/hello/hello.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//!+
1+
// !+
22
package main
33

44
import "fmt"

gotypes/hugeparam/main.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// The hugeparam command identifies by-value parameters that are larger than n bytes.
22
//
33
// Example:
4+
//
45
// $ ./hugeparams encoding/xml
56
package main
67

@@ -15,7 +16,7 @@ import (
1516
"golang.org/x/tools/go/loader"
1617
)
1718

18-
//!+
19+
// !+
1920
var bytesFlag = flag.Int("bytes", 48, "maximum parameter size in bytes")
2021

2122
var sizeof = (&types.StdSizes{8, 8}).Sizeof // the sizeof function

gotypes/implements/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"log"
1111
)
1212

13-
//!+input
13+
// !+input
1414
const input = `package main
1515
1616
type A struct{}

gotypes/lookup/lookup.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"strings"
1212
)
1313

14-
//!+input
14+
// !+input
1515
const hello = `
1616
package main
1717
@@ -32,7 +32,7 @@ func main() {
3232

3333
//!-input
3434

35-
//!+main
35+
// !+main
3636
func main() {
3737
fset := token.NewFileSet()
3838
f, err := parser.ParseFile(fset, "hello.go", hello, parser.ParseComments)

gotypes/nilfunc/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"log"
1111
)
1212

13-
//!+input
13+
// !+input
1414
const input = `package main
1515
1616
import "bytes"
@@ -50,7 +50,7 @@ func main() {
5050
})
5151
}
5252

53-
//!+
53+
// !+
5454
// CheckNilFuncComparison reports unintended comparisons
5555
// of functions against nil, e.g., "if x.Method == nil {".
5656
func CheckNilFuncComparison(info *types.Info, n ast.Node) {

gotypes/pkginfo/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//!+
1+
// !+
22
package main
33

44
import (

gotypes/skeleton/main.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// that implements the specified interface type.
33
//
44
// Example:
5+
//
56
// $ ./skeleton io ReadWriteCloser buffer
67
// // *buffer implements io.ReadWriteCloser.
78
// type buffer struct{ /* ... */ }
@@ -24,7 +25,7 @@ import (
2425

2526
const usage = "Usage: skeleton <package> <interface> <concrete>"
2627

27-
//!+
28+
// !+
2829
func PrintSkeleton(pkg *types.Package, ifacename, concname string) error {
2930
obj := pkg.Scope().Lookup(ifacename)
3031
if obj == nil {

gotypes/typeandvalue/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"log"
1313
)
1414

15-
//!+input
15+
// !+input
1616
const input = `
1717
package main
1818

gotypes/weave.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
// It builds a table of contents and processes %include directives.
33
//
44
// Example usage:
5-
// $ go run weave.go go-types.md > README.md
5+
//
6+
// $ go run weave.go go-types.md > README.md
67
package main
78

89
import (

0 commit comments

Comments
 (0)