Skip to content
This repository has been archived by the owner on Oct 17, 2018. It is now read-only.

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Chao Wang committed May 24, 2017
1 parent fada1b2 commit 17cb1a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions policy/unaggregated/aggregation_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (aggTypes AggregationTypes) String() string {
return strings.Join(parts, aggregationTypesSeparator)
}

// IsValidForGauge if a list of AggregationTypes is valid for Gauge.
// IsValidForGauge checks if the list of aggregation types is valid for Gauge.
func (aggTypes AggregationTypes) IsValidForGauge() bool {
for _, aggType := range aggTypes {
if !aggType.IsValidForGauge() {
Expand All @@ -187,7 +187,7 @@ func (aggTypes AggregationTypes) IsValidForGauge() bool {
return true
}

// IsValidForCounter if an AggregationType is valid for Counter.
// IsValidForCounter checks if the list of aggregation types is valid for Counter.
func (aggTypes AggregationTypes) IsValidForCounter() bool {
for _, aggType := range aggTypes {
if !aggType.IsValidForCounter() {
Expand All @@ -197,7 +197,7 @@ func (aggTypes AggregationTypes) IsValidForCounter() bool {
return true
}

// IsValidForTimer if an AggregationType is valid for Timer.
// IsValidForTimer checks if the list of aggregation types is valid for Timer.
func (aggTypes AggregationTypes) IsValidForTimer() bool {
for _, aggType := range aggTypes {
if !aggType.IsValidForTimer() {
Expand Down

0 comments on commit 17cb1a4

Please sign in to comment.