Skip to content

Commit cdd7f45

Browse files
authored
Merge pull request #1322 from sengi/docs
docs: trivial grammar fixes to improve readability in promauto Godoc
2 parents e6d9092 + f16b435 commit cdd7f45

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

prometheus/promauto/auto.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// constructors register the Collectors with a registry before returning them.
1818
// There are two sets of constructors. The constructors in the first set are
1919
// top-level functions, while the constructors in the other set are methods of
20-
// the Factory type. The top-level function return Collectors registered with
20+
// the Factory type. The top-level functions return Collectors registered with
2121
// the global registry (prometheus.DefaultRegisterer), while the methods return
2222
// Collectors registered with the registry the Factory was constructed with. All
2323
// constructors panic if the registration fails.
@@ -85,7 +85,7 @@
8585
// }
8686
//
8787
// A Factory is created with the With(prometheus.Registerer) function, which
88-
// enables two usage pattern. With(prometheus.Registerer) can be called once per
88+
// enables two usage patterns. With(prometheus.Registerer) can be called once per
8989
// line:
9090
//
9191
// var (
@@ -153,7 +153,7 @@
153153
// importing a package.
154154
//
155155
// A separate package allows conservative users to entirely ignore it. And
156-
// whoever wants to use it, will do so explicitly, with an opportunity to read
156+
// whoever wants to use it will do so explicitly, with an opportunity to read
157157
// this warning.
158158
//
159159
// Enjoy promauto responsibly!

0 commit comments

Comments
 (0)