summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-08-22 22:13:16 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-08-22 22:13:16 +0200
commit8eea0d085fd5352496328aa87c120df4e58dd7c8 (patch)
tree2c627f8c07db5af8f454feb9f2dacfd61154769c
parent53a6dca2b484d7d634884c90179a5a59361e6077 (diff)
Rename
-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")
}
}