Permalink
Browse files

fix example/example

  • Loading branch information...
1 parent d03c226 commit 1bc432cc58b82acd19ecfde93c35923a2d7a7b1b @kachick committed May 3, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 example/example.rb
View
8 example/example.rb
@@ -11,18 +11,18 @@ class Stack < AbstractStack; end
p stack
p stack.top #=> 7
p stack.bottom #=> 1
- stack.pop #=> 7
- stack.pop #=> 1
+ stack.pop #=> 7
+ stack.pop #=> 1
p stack
p stack.to_a
- #stack.pop #=> Exception(Stack::UnderFlow)
+ #stack.pop #=> Exception(UnderFlow)
# * Size limitation
stack = Stack.new 2
p stack.limit #=> 2
stack << 1 << 7
- #stack << 9 #=> Exception(Stack::Overflow)
+ #stack << 9 #=> Exception(Overflow)
# * You can get your extended Stack class

0 comments on commit 1bc432c

Please sign in to comment.