From f60620ec0b65b0b18ad2af9feff5f59f8fda47b0 Mon Sep 17 00:00:00 2001 From: Augustin Husson Date: Wed, 26 Sep 2018 10:48:35 +0200 Subject: [PATCH] format comment Signed-off-by: Augustin Husson --- documentation/examples/custom-sd/adapter-usage/main.go | 2 +- documentation/examples/custom-sd/adapter/adapter.go | 2 +- documentation/examples/custom-sd/adapter/adapter_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/documentation/examples/custom-sd/adapter-usage/main.go b/documentation/examples/custom-sd/adapter-usage/main.go index c8484891c..40bb07e2a 100644 --- a/documentation/examples/custom-sd/adapter-usage/main.go +++ b/documentation/examples/custom-sd/adapter-usage/main.go @@ -200,7 +200,7 @@ func (d *discovery) Run(ctx context.Context, ch chan<- []*targetgroup.Group) { tgs = append(tgs, tg) newSourceList[tg.Source] = true } - // when targetGroup disappear, send an update with empty targetList + // When targetGroup disappear, send an update with empty targetList. for key := range d.oldSourceList { if !newSourceList[key] { tgs = append(tgs, &targetgroup.Group{ diff --git a/documentation/examples/custom-sd/adapter/adapter.go b/documentation/examples/custom-sd/adapter/adapter.go index 048a7be34..3d9e7afe1 100644 --- a/documentation/examples/custom-sd/adapter/adapter.go +++ b/documentation/examples/custom-sd/adapter/adapter.go @@ -59,7 +59,7 @@ func generateTargetGroups(allTargetGroups map[string][]*targetgroup.Group) map[s for k, sdTargetGroups := range allTargetGroups { for i, group := range sdTargetGroups { - // There is no target, so no need to keep it + // There is no target, so no need to keep it. if len(group.Targets) <= 0 { continue } diff --git a/documentation/examples/custom-sd/adapter/adapter_test.go b/documentation/examples/custom-sd/adapter/adapter_test.go index 563e1c108..812da09d0 100644 --- a/documentation/examples/custom-sd/adapter/adapter_test.go +++ b/documentation/examples/custom-sd/adapter/adapter_test.go @@ -22,7 +22,7 @@ import ( ) // TestGenerateTargetGroups checks that the target is correctly generated. -// It covers the case when the target is empty +// It covers the case when the target is empty. func TestGenerateTargetGroups(t *testing.T) { testCases := []struct { title string