Merge pull request #32 from skilldrick/spellings.
authorJoe O'Brien <joe@theedgecase.com>
Sat, 30 Apr 2011 18:57:21 +0000 (11:57 -0700)
committerJoe O'Brien <joe@theedgecase.com>
Sat, 30 Apr 2011 18:57:21 +0000 (11:57 -0700)
Spellings

koans/about_constants.rb
koans/about_iteration.rb
koans/about_message_passing.rb

index 006f1c0..41d3f01 100644 (file)
@@ -81,7 +81,7 @@ class AboutConstants < EdgeCase::Koan
     assert_equal __, MyAnimals::Oyster.new.legs_in_oyster
   end
 
-  # QUESTION: Now Which has precedence: The constant in the lexical
-  # scope, or the constant from the inheritance heirarachy?  Why is it
+  # QUESTION: Now which has precedence: The constant in the lexical
+  # scope, or the constant from the inheritance hierarchy?  Why is it
   # different than the previous answer?
 end
index 591b869..5c5a2b0 100644 (file)
@@ -65,7 +65,7 @@ class AboutIteration < EdgeCase::Koan
     result = [2, 3, 4].inject(0) { |sum, item| sum + item }
     assert_equal __, result
 
-    result2 = [2, 3, 4].inject(1) { |sum, item| sum * item }
+    result2 = [2, 3, 4].inject(1) { |product, item| product * item }
     assert_equal __, result2
 
     # Extra Credit:
index 45541a0..a978dde 100644 (file)
@@ -99,7 +99,7 @@ class AboutMessagePassing < EdgeCase::Koan
     # keep in mind you can't call method_missing like that in Ruby
     # 1.9. normally.
     #
-    # Thanks.  We now return you to your regularly schedule Ruby
+    # Thanks.  We now return you to your regularly scheduled Ruby
     # Koans.
   end