Browse Source

refactor comments on IsPermanent

Xiang Li 12 years ago
parent
commit
acd940a450
1 changed files with 3 additions and 0 deletions
  1. 3 0
      store/node.go

+ 3 - 0
store/node.go

@@ -84,6 +84,9 @@ func (n *Node) IsHidden() bool {
 
 
 // IsPermanent function checks if the node is a permanent one.
 // IsPermanent function checks if the node is a permanent one.
 func (n *Node) IsPermanent() bool {
 func (n *Node) IsPermanent() bool {
+	// we use a uninitialized time.Time to indicate the node is a
+	// permanent one.
+	// the uninitialized time.Time should equal zero.
 	return n.ExpireTime.IsZero()
 	return n.ExpireTime.IsZero()
 }
 }