Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit b4a1468

Browse files
ajsinclairrghetia
authored andcommitted
Clean up comments in view.go (#1152)
1 parent 19a9151 commit b4a1468

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

stats/view/view.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
)
3131

3232
// View allows users to aggregate the recorded stats.Measurements.
33-
// Views need to be passed to the Register function to be before data will be
33+
// Views need to be passed to the Register function before data will be
3434
// collected and sent to Exporters.
3535
type View struct {
3636
Name string // Name of View. Must be unique. If unset, will default to the name of the Measure.
@@ -43,7 +43,7 @@ type View struct {
4343
// Measure is a stats.Measure to aggregate in this view.
4444
Measure stats.Measure
4545

46-
// Aggregation is the aggregation function tp apply to the set of Measurements.
46+
// Aggregation is the aggregation function to apply to the set of Measurements.
4747
Aggregation *Aggregation
4848
}
4949

@@ -189,7 +189,7 @@ func (r *Row) String() string {
189189
}
190190

191191
// Equal returns true if both rows are equal. Tags are expected to be ordered
192-
// by the key name. Even both rows have the same tags but the tags appear in
192+
// by the key name. Even if both rows have the same tags but the tags appear in
193193
// different orders it will return false.
194194
func (r *Row) Equal(other *Row) bool {
195195
if r == other {

0 commit comments

Comments
 (0)