structs.go
changeset 52 9b664fde0ec3
parent 51 1af366d10d32
child 59 be6815a9653a
--- a/structs.go	Mon Jan 02 13:18:48 2012 -0700
+++ b/structs.go	Mon Jan 02 21:40:42 2012 -0700
@@ -187,6 +187,8 @@
 	return result
 }
 
+// Set implements flag.Value. It returns true if it successfully
+// parses the string.
 func (jid *JID) Set(val string) bool {
 	r := regexp.MustCompile("^(([^@/]+)@)?([^@/]+)(/([^@/]+))?$")
 	parts := r.FindStringSubmatch(val)