summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/glsa_repository.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/glsa_repository.rb b/lib/glsa_repository.rb
index ee1096b..9fe571a 100644
--- a/lib/glsa_repository.rb
+++ b/lib/glsa_repository.rb
@@ -44,7 +44,7 @@ class GLSARepository
end
def latest(n = 10)
- @latest[0..n].map {|id| @advisories[id] }
+ @latest[0...n].map {|id| @advisories[id] }
end
def[](id)