From 82d7213670c1f56acbe9dbd5938d06ab7d1e2842 Mon Sep 17 00:00:00 2001 From: CodeLingo Bot Date: Sun, 17 Feb 2019 20:35:26 +0000 Subject: [PATCH] Fix function comments based on best practices from Effective Go Signed-off-by: CodeLingo Bot --- yaml/network.go | 4 ++-- yaml/volume.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/yaml/network.go b/yaml/network.go index d56ca4e08..47031b2f5 100644 --- a/yaml/network.go +++ b/yaml/network.go @@ -22,7 +22,7 @@ type Network struct { IPv6Address string `yaml:"ipv6_address,omitempty"` } -// Generate a hash string to detect service network config changes +// HashString: Generate a hash string to detect service network config changes func (n *Networks) HashString() string { if n == nil { return "" @@ -35,7 +35,7 @@ func (n *Networks) HashString() string { return strings.Join(result, ",") } -// Generate a hash string to detect service network config changes +// HashString: Generate a hash string to detect service network config changes func (n *Network) HashString() string { if n == nil { return "" diff --git a/yaml/volume.go b/yaml/volume.go index 8eabe572a..28e8122d9 100644 --- a/yaml/volume.go +++ b/yaml/volume.go @@ -20,7 +20,7 @@ type Volume struct { AccessMode string `yaml:"-"` } -// Generate a hash string to detect service volume config changes +// HashString: Generate a hash string to detect service volume config changes func (v *Volumes) HashString() string { if v == nil { return ""