summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index bb5b372..871d4ac 100644
--- a/main.go
+++ b/main.go
@@ -41,7 +41,7 @@ func Split(s string) (string, int) {
return s[:i], n
}
-func (l List) String() string {
+func (l List) Kind() string {
homo, hetero := l.IsHomo(), l.IsHetero()
switch {
case homo && hetero:
@@ -67,7 +67,7 @@ func Homo(r io.Reader, w io.Writer) {
case "delete":
l.Delete(n)
}
- io.WriteString(w, l.String())
+ io.WriteString(w, l.Kind())
io.WriteString(w, "\n")
}
}