From 9ccbeb585ba07d51e26c1457a9f3107f23d52aea Mon Sep 17 00:00:00 2001 From: JoeWrightss <42261994+JoeWrightss@users.noreply.github.com> Date: Sun, 16 Dec 2018 21:03:55 +0800 Subject: [PATCH] cluster: Fix typo in comment (#1668) Signed-off-by: JoeWrightss --- cluster/advertise.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cluster/advertise.go b/cluster/advertise.go index c6f44b92..8eca5463 100644 --- a/cluster/advertise.go +++ b/cluster/advertise.go @@ -22,13 +22,13 @@ import ( type getPrivateIPFunc func() (string, error) -// This is overriden in unit tests to mock the sockaddr.GetPrivateIP function. +// This is overridden in unit tests to mock the sockaddr.GetPrivateIP function. var getPrivateAddress getPrivateIPFunc = sockaddr.GetPrivateIP // calculateAdvertiseAddress attempts to clone logic from deep within memberlist // (NetTransport.FinalAdvertiseAddr) in order to surface its conclusions to the // application, so we can provide more actionable error messages if the user has -// inadvertantly misconfigured their cluster. +// inadvertently misconfigured their cluster. // // https://github.com/hashicorp/memberlist/blob/022f081/net_transport.go#L126 func calculateAdvertiseAddress(bindAddr, advertiseAddr string) (net.IP, error) {