all: fix some comments
Change-Id: I8a332489815651067a36c84690db9c6cb540882e
Reviewed-on: https://go-review.googlesource.com/c/benchmarks/+/465998
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
diff --git a/cmd/bent/bent.go b/cmd/bent/bent.go
index 72e8e97..d4de8dd 100644
--- a/cmd/bent/bent.go
+++ b/cmd/bent/bent.go
@@ -1300,7 +1300,7 @@
return newenv
}
-// replaceEnv returns a new environment derived from env
+// replaceEnvs returns a new environment derived from env
// by replacing or adding all modifiers in newevs.
func replaceEnvs(env, newevs []string) []string {
for _, e := range newevs {
@@ -1344,7 +1344,7 @@
return env
}
-// csToset converts a comma-separated string into the set of strings between the commas.
+// csToSet converts a comma-separated string into the set of strings between the commas.
func csToSet(s string) map[string]bool {
if s == "" {
return nil
diff --git a/stats/edmx.go b/stats/edmx.go
index 2e43d05..5168d33 100644
--- a/stats/edmx.go
+++ b/stats/edmx.go
@@ -117,7 +117,7 @@
return edmx(c, delta)
}
-// EMDXInt runs the EDM-X algorithm on a slice of integer datapoints.
+// EDMXInt runs the EDM-X algorithm on a slice of integer datapoints.
func EDMXInt(input []int, delta int) int {
return edmx(toFloat(input), delta)
}
diff --git a/third_party/bleve-bench/mapping.go b/third_party/bleve-bench/mapping.go
index 2e8fa73..a7fdf49 100644
--- a/third_party/bleve-bench/mapping.go
+++ b/third_party/bleve-bench/mapping.go
@@ -26,7 +26,7 @@
"github.com/blevesearch/bleve/mapping"
)
-// articleMapping returns a mapping for indexing wikipedia articles
+// ArticleMapping returns a mapping for indexing wikipedia articles
// in a manner similar to that done by the Apache Lucene nightly
// benchmarks.
func ArticleMapping() mapping.IndexMapping {