From 55991031d3486d33f398cda7624acc912873e669 Mon Sep 17 00:00:00 2001 From: Stephan Date: Thu, 1 Jan 2015 13:06:23 +0100 Subject: [PATCH] Better description for IsZero() --- node.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node.go b/node.go index ed6d822..06ae855 100644 --- a/node.go +++ b/node.go @@ -39,7 +39,8 @@ func NewNode(id NodeID, local, global, region string, port int) *Node { } } -// IsZero returns whether or the given Node has been initialised or if it's an empty Node struct. IsZero returns true if the Node has been initialised, false if it's an empty struct. +// IsZero returns whether or the given Node has been initialised or if it's an empty Node struct. +// The result is true, if the IPs and port are empty, false if it has been initialised. func (self Node) IsZero() bool { return self.LocalIP == "" && self.GlobalIP == "" && self.Port == 0 }