From 34cc5c406959b305748097a63d7ff281f9e5966c Mon Sep 17 00:00:00 2001 From: Skilldrick Date: Sun, 20 Feb 2011 11:26:27 +0000 Subject: [PATCH] Fix some typos. --- koans/about_constants.rb | 6 +++--- koans/about_iteration.rb | 2 +- koans/about_message_passing.rb | 2 +- koans/about_modules.rb | 2 +- koans/about_proxy_object_project.rb | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/koans/about_constants.rb b/koans/about_constants.rb index 0beccdc..41d3f01 100644 --- a/koans/about_constants.rb +++ b/koans/about_constants.rb @@ -67,7 +67,7 @@ class AboutConstants < EdgeCase::Koan end # QUESTION: Which has precedence: The constant in the lexical scope, - # or the constant from the inheritance heirarachy? + # or the constant from the inheritance hierarchy? # ------------------------------------------------------------------ @@ -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 diff --git a/koans/about_iteration.rb b/koans/about_iteration.rb index 591b869..5c5a2b0 100644 --- a/koans/about_iteration.rb +++ b/koans/about_iteration.rb @@ -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: diff --git a/koans/about_message_passing.rb b/koans/about_message_passing.rb index 45541a0..a978dde 100644 --- a/koans/about_message_passing.rb +++ b/koans/about_message_passing.rb @@ -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 diff --git a/koans/about_modules.rb b/koans/about_modules.rb index cd967a9..8b56b65 100644 --- a/koans/about_modules.rb +++ b/koans/about_modules.rb @@ -42,7 +42,7 @@ class AboutModules < EdgeCase::Koan assert_equal __, fido.bark end - def test_module_methods_are_also_availble_in_the_object + def test_module_methods_are_also_available_in_the_object fido = Dog.new assert_nothing_raised(Exception) do fido.set_name("Rover") diff --git a/koans/about_proxy_object_project.rb b/koans/about_proxy_object_project.rb index a959a80..1c1a8e7 100644 --- a/koans/about_proxy_object_project.rb +++ b/koans/about_proxy_object_project.rb @@ -6,7 +6,7 @@ require File.expand_path(File.dirname(__FILE__) + '/edgecase') # below). You should be able to initialize the proxy object with any # object. Any messages sent to the proxy object should be forwarded # to the target object. As each message is sent, the proxy should -# record the name of the method send. +# record the name of the method sent. # # The proxy class is started for you. You will need to add a method # missing handler and any other supporting methods. The specification -- 1.8.0.2