Skip to content
Browse files

fix ruby errors in prototypes.md

The Queue example in ruby had a stray paren and a use of null instead of nil.

Also I'm not sure why !! is needed in Queue#isEmpty - the < operator will always return true/false. But I haven't changed that because I'm not sure.
  • Loading branch information...
1 parent e4ce9f6 commit 90a44385597fdef962e7f6672f6c268d50610d86 @dubek dubek committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 2013/02/prototypes.md
View
4 2013/02/prototypes.md
@@ -62,8 +62,8 @@ class Queue
def pullHead
if !@isEmpty
- @array[@head]).tap { |value|
- @array[@head] = null
+ @array[@head].tap { |value|
+ @array[@head] = nil
@head += 1
}
end

0 comments on commit 90a4438

Please sign in to comment.
Something went wrong with that request. Please try again.