Documented Block, some renames

This commit is contained in:
Jae Kwon
2014-12-23 01:35:54 -08:00
parent 403d24a4b2
commit 62ff48c02b
12 changed files with 174 additions and 83 deletions

View File

@ -247,14 +247,14 @@ func (voteSet *VoteSet) MakeValidation() *Validation {
}
func (voteSet *VoteSet) String() string {
return voteSet.StringWithIndent("")
return voteSet.StringIndented("")
}
func (voteSet *VoteSet) StringWithIndent(indent string) string {
func (voteSet *VoteSet) StringIndented(indent string) string {
voteStrings := make([]string, len(voteSet.votes))
for i, vote := range voteSet.votes {
if vote == nil {
voteStrings[i] = "nil"
voteStrings[i] = "nil-Vote"
} else {
voteStrings[i] = vote.String()
}
@ -270,7 +270,7 @@ func (voteSet *VoteSet) StringWithIndent(indent string) string {
indent)
}
func (voteSet *VoteSet) Description() string {
func (voteSet *VoteSet) StringShort() string {
if voteSet == nil {
return "nil-VoteSet"
}