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

Clean up comments in view.go #1152

Merged
merged 1 commit into from
Jul 13, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions stats/view/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
)

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

// Aggregation is the aggregation function tp apply to the set of Measurements.
// Aggregation is the aggregation function to apply to the set of Measurements.
Aggregation *Aggregation
}

Expand Down Expand Up @@ -189,7 +189,7 @@ func (r *Row) String() string {
}

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