aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 31971d6..f62cfb2 100644
--- a/main.go
+++ b/main.go
@@ -97,7 +97,7 @@ func scan(n int) *list.Element {
return nil
}
e := alphabet.Front()
- for i := 0; i <= n; i++ {
+ for i := 0; i < n; i++ {
e = e.Next()
}
return e