Skip to content
This repository has been archived by the owner on May 22, 2021. It is now read-only.

Commit

Permalink
add comments in example.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed May 14, 2012
1 parent 8b9f66b commit 15c80e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example/example.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ class Stack < AbstractStack; end
stack = Stack.new
stack.push 1
stack << 7
p stack
p stack #=> #<Stack limit=nil [1, 7]>
p stack.top #=> 7
p stack.bottom #=> 1
stack.pop #=> 7
stack.pop #=> 1
p stack
p stack.to_a
p stack #=> #<Stack limit=nil []>
p stack.to_a #=> []
#stack.pop #=> Exception(UnderFlow)

# * Size limitation
Expand Down

0 comments on commit 15c80e0

Please sign in to comment.