Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix example/example

  • Loading branch information...
commit 1bc432cc58b82acd19ecfde93c35923a2d7a7b1b 1 parent d03c226
Kenichi Kamiya authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 example/example.rb
8 example/example.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.