diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/cgo/test/callback.go | 2 | ||||
-rw-r--r-- | misc/cgo/test/cgo_test.go | 2 | ||||
-rw-r--r-- | misc/cgo/test/issue1560.go | 4 | ||||
-rw-r--r-- | misc/cgo/test/issue4029.go | 2 | ||||
-rw-r--r-- | misc/dashboard/app/build/build.go | 2 | ||||
-rw-r--r-- | misc/dashboard/builder/doc.go | 8 | ||||
-rw-r--r-- | misc/dashboard/builder/exec.go | 2 | ||||
-rw-r--r-- | misc/dashboard/builder/main.go | 4 | ||||
-rw-r--r-- | misc/dashboard/codereview/dashboard/cl.go | 2 | ||||
-rw-r--r-- | misc/goplay/doc.go | 10 | ||||
-rw-r--r-- | misc/goplay/goplay.go | 2 |
11 files changed, 20 insertions, 20 deletions
diff --git a/misc/cgo/test/callback.go b/misc/cgo/test/callback.go index e6a1462b3..4f5d3f855 100644 --- a/misc/cgo/test/callback.go +++ b/misc/cgo/test/callback.go @@ -110,7 +110,7 @@ func testZeroArgCallback(t *testing.T) { func goFoo() { x := 1 for i := 0; i < 10000; i++ { - // variadic call mallocs + writes to + // variadic call mallocs + writes to variadic(x, x, x) if x != 1 { panic("bad x") diff --git a/misc/cgo/test/cgo_test.go b/misc/cgo/test/cgo_test.go index 682e292a7..a423195f4 100644 --- a/misc/cgo/test/cgo_test.go +++ b/misc/cgo/test/cgo_test.go @@ -6,7 +6,7 @@ package cgotest import "testing" -// The actual test functions are in non-_test.go files +// The actual test functions are in non-_test.go files // so that they can use cgo (import "C"). // These wrappers are here for gotest to find. diff --git a/misc/cgo/test/issue1560.go b/misc/cgo/test/issue1560.go index 0f43b8bd0..147ce94b5 100644 --- a/misc/cgo/test/issue1560.go +++ b/misc/cgo/test/issue1560.go @@ -35,8 +35,8 @@ func BackgroundSleep(n int32) { }() } -// wasteCPU starts a background goroutine to waste CPU -// to cause the power management to raise the CPU frequency. +// wasteCPU starts a background goroutine to waste CPU +// to cause the power management to raise the CPU frequency. // On ARM this has the side effect of making sleep more accurate. func wasteCPU() chan struct{} { done := make(chan struct{}) diff --git a/misc/cgo/test/issue4029.go b/misc/cgo/test/issue4029.go index a266cc64a..7495d38fe 100644 --- a/misc/cgo/test/issue4029.go +++ b/misc/cgo/test/issue4029.go @@ -7,7 +7,7 @@ package cgotest /* -#include <dlfcn.h> +#include <dlfcn.h> #cgo linux LDFLAGS: -ldl */ import "C" diff --git a/misc/dashboard/app/build/build.go b/misc/dashboard/app/build/build.go index 52f9fb0d4..53db3dda5 100644 --- a/misc/dashboard/app/build/build.go +++ b/misc/dashboard/app/build/build.go @@ -183,7 +183,7 @@ type Result struct { Log string `datastore:"-"` // for JSON unmarshaling only LogHash string `datastore:",noindex"` // Key to the Log record. - RunTime int64 // time to build+test in nanoseconds + RunTime int64 // time to build+test in nanoseconds } func (r *Result) Key(c appengine.Context) *datastore.Key { diff --git a/misc/dashboard/builder/doc.go b/misc/dashboard/builder/doc.go index 30d8fe948..707f8e68f 100644 --- a/misc/dashboard/builder/doc.go +++ b/misc/dashboard/builder/doc.go @@ -4,15 +4,15 @@ /* -Go Builder is a continuous build client for the Go project. +Go Builder is a continuous build client for the Go project. It integrates with the Go Dashboard AppEngine application. Go Builder is intended to run continuously as a background process. -It periodically pulls updates from the Go Mercurial repository. +It periodically pulls updates from the Go Mercurial repository. When a newer revision is found, Go Builder creates a clone of the repository, -runs all.bash, and reports build success or failure to the Go Dashboard. +runs all.bash, and reports build success or failure to the Go Dashboard. For a release revision (a change description that matches "release.YYYY-MM-DD"), Go Builder will create a tar.gz archive of the GOROOT and deliver it to the @@ -22,7 +22,7 @@ Usage: gobuilder goos-goarch... - Several goos-goarch combinations can be provided, and the builder will + Several goos-goarch combinations can be provided, and the builder will build them in serial. Optional flags: diff --git a/misc/dashboard/builder/exec.go b/misc/dashboard/builder/exec.go index 6ebe7b8bf..bf5c28d47 100644 --- a/misc/dashboard/builder/exec.go +++ b/misc/dashboard/builder/exec.go @@ -29,7 +29,7 @@ func run(timeout time.Duration, envv []string, dir string, argv ...string) error return waitWithTimeout(timeout, cmd) } -// runLog runs a process and returns the combined stdout/stderr, +// runLog runs a process and returns the combined stdout/stderr, // as well as writing it to logfile (if specified). It returns // process combined stdout and stderr output, exit status and error. // The error returned is nil, if process is started successfully, diff --git a/misc/dashboard/builder/main.go b/misc/dashboard/builder/main.go index 5e30115ed..03999db17 100644 --- a/misc/dashboard/builder/main.go +++ b/misc/dashboard/builder/main.go @@ -208,7 +208,7 @@ func NewBuilder(builder string) (*Builder, error) { } // build checks for a new commit for this builder -// and builds it if one is found. +// and builds it if one is found. // It returns true if a build was attempted. func (b *Builder) build() bool { hash, err := b.todo("build-go-commit", "", "") @@ -286,7 +286,7 @@ func (b *Builder) buildHash(hash string) error { } // failBuild checks for a new commit for this builder -// and fails it if one is found. +// and fails it if one is found. // It returns true if a build was "attempted". func (b *Builder) failBuild() bool { hash, err := b.todo("build-go-commit", "", "") diff --git a/misc/dashboard/codereview/dashboard/cl.go b/misc/dashboard/codereview/dashboard/cl.go index dce274425..e150ea123 100644 --- a/misc/dashboard/codereview/dashboard/cl.go +++ b/misc/dashboard/codereview/dashboard/cl.go @@ -434,7 +434,7 @@ func updateCL(c appengine.Context, n string) error { // trailingSpaceRE matches trailing spaces. var trailingSpaceRE = regexp.MustCompile(`(?m)[ \t\r]+$`) -// removeRE is the list of patterns to skip over at the beginning of a +// removeRE is the list of patterns to skip over at the beginning of a // message when looking for message text. var removeRE = regexp.MustCompile(`(?m-s)\A(` + // Skip leading "Hello so-and-so," generated by codereview plugin. diff --git a/misc/goplay/doc.go b/misc/goplay/doc.go index fd4a28e71..e4e886291 100644 --- a/misc/goplay/doc.go +++ b/misc/goplay/doc.go @@ -4,20 +4,20 @@ // Goplay is a web interface for experimenting with Go code. // It is similar to the Go Playground: http://golang.org/doc/play/ -// +// // To use goplay: // $ cd $GOROOT/misc/goplay // $ go run goplay.go // and load http://localhost:3999/ in a web browser. -// +// // You should see a Hello World program, which you can compile and run by // pressing shift-enter. There is also a "compile-on-keypress" feature that can // be enabled by checking a checkbox. -// +// // WARNING! CUIDADO! ACHTUNG! ATTENZIONE! // A note on security: anyone with access to the goplay web interface can run // arbitrary code on your computer. Goplay is not a sandbox, and has no other -// security mechanisms. Do not deploy it in untrusted environments. -// By default, goplay listens only on localhost. This can be overridden with +// security mechanisms. Do not deploy it in untrusted environments. +// By default, goplay listens only on localhost. This can be overridden with // the -http parameter. Do so at your own risk. package documentation diff --git a/misc/goplay/goplay.go b/misc/goplay/goplay.go index 9ce4f89ae..94d04139d 100644 --- a/misc/goplay/goplay.go +++ b/misc/goplay/goplay.go @@ -44,7 +44,7 @@ func main() { log.Fatal(http.ListenAndServe(*httpListen, nil)) } -// FrontPage is an HTTP handler that renders the goplay interface. +// FrontPage is an HTTP handler that renders the goplay interface. // If a filename is supplied in the path component of the URI, // its contents will be put in the interface's text area. // Otherwise, the default "hello, world" program is displayed. |