aboutsummaryrefslogtreecommitdiff
path: root/pic.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-11-26 12:47:39 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-11-26 12:47:39 +0100
commit413560591fc2d89a73eb8a33ba28b0cc3407b1db (patch)
treee8a31126dcaefaf577f6d5cc8d9a8827572c623a /pic.go
parent8f457a9a2a5b0852820026273ae425ef29ae85d8 (diff)
rename Page to Pic
Diffstat (limited to 'pic.go')
-rw-r--r--pic.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pic.go b/pic.go
index a7c7827..94ed715 100644
--- a/pic.go
+++ b/pic.go
@@ -8,7 +8,7 @@ import (
"strings"
)
-type Page []Path
+type Pic []Path
func parseLine(s string) (pa Path) {
if strings.HasPrefix(s, "line from ") {
@@ -23,7 +23,7 @@ func parseLine(s string) (pa Path) {
return pa
}
-func parsePage() (pa Page) {
+func parsePic() (pa Pic) {
scanner := bufio.NewScanner(os.Stdin)
for scanner.Scan() {
if p := parseLine(scanner.Text()); p != nil {
@@ -38,7 +38,7 @@ func parsePage() (pa Page) {
func (r Robo) DrawPic() {
//Landscape.Orientation(c)
- for _, p := range parsePage() {
+ for _, p := range parsePic() {
r.Line(p...)
}
}