all: fix typos

Change-Id: I50737f4861090135a37b50b4ece00c73069436fd
GitHub-Last-Rev: f6ac676d4672181e7dec2e6aca1647662f75c186
GitHub-Pull-Request: golang/benchmarks#2
Reviewed-on: https://go-review.googlesource.com/c/benchmarks/+/388575
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Tobias Klauser <tobias.klauser@gmail.com>
diff --git a/cmd/bench/sweet.go b/cmd/bench/sweet.go
index 14da3e1..41e6762 100644
--- a/cmd/bench/sweet.go
+++ b/cmd/bench/sweet.go
@@ -119,7 +119,7 @@
 	// Don't fail immediately. Let's try to dump whatever results we have first.
 	sweetErr := cmd.Run()
 	defer func() {
-		// Any sweet errors take precendence over errors encountered in printing
+		// Any sweet errors take precedence over errors encountered in printing
 		// results.
 		if sweetErr != nil {
 			if err != nil {
diff --git a/garbage/nethttp.go b/garbage/nethttp.go
index 851a049..ba7e806 100644
--- a/garbage/nethttp.go
+++ b/garbage/nethttp.go
@@ -837,7 +837,7 @@
 	return cookies
 }
 
-// validCookieDomain returns wheter v is a valid cookie domain-value.
+// validCookieDomain returns whether v is a valid cookie domain-value.
 func validCookieDomain(v string) bool {
 	if isCookieDomainName(v) {
 		return true
diff --git a/sweet/cmd/sweet/benchmark.go b/sweet/cmd/sweet/benchmark.go
index dd88971..e650947 100644
--- a/sweet/cmd/sweet/benchmark.go
+++ b/sweet/cmd/sweet/benchmark.go
@@ -199,7 +199,7 @@
 	// Perform a setup step for each config for the benchmark.
 	setups := make([]common.RunConfig, 0, len(cfgs))
 	for _, cfg := range cfgs {
-		// Create directory heirarchy for benchmarks.
+		// Create directory hierarchy for benchmarks.
 		workDir := filepath.Join(topDir, cfg.Name)
 		binDir := filepath.Join(workDir, "bin")
 		tmpDir := filepath.Join(workDir, "tmp")
diff --git a/sweet/common/fileutil/copy.go b/sweet/common/fileutil/copy.go
index 2fc4004..85919d9 100644
--- a/sweet/common/fileutil/copy.go
+++ b/sweet/common/fileutil/copy.go
@@ -73,7 +73,7 @@
 // CopyDir recursively copies the directory at path src to
 // a new directory at path dst. If a symlink is encountered
 // along the way, its link is copied verbatim and installed
-// in the destination directory heirarchy, as in CopySymlink.
+// in the destination directory hierarchy, as in CopySymlink.
 //
 // If srcFS != nil, then src is assumed to be a path within
 // srcFS.