summaryrefslogtreecommitdiff
path: root/lib/chef/resource/chef_handler.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource/chef_handler.rb')
-rw-r--r--lib/chef/resource/chef_handler.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/chef_handler.rb b/lib/chef/resource/chef_handler.rb
index 0138baeaec..f2daab3d6e 100644
--- a/lib/chef/resource/chef_handler.rb
+++ b/lib/chef/resource/chef_handler.rb
@@ -107,7 +107,7 @@ class Chef
end
end
- # Walks down the namespace heirarchy to return the class object for the given class name.
+ # Walks down the namespace hierarchy to return the class object for the given class name.
# If the class is not available, NameError is thrown.
#
# @param class_full_name [String] full class name such as 'Chef::Handler::Foo' or 'MyHandler'.
@@ -118,7 +118,7 @@ class Chef
class_name = ancestors.pop
# We need to search the ancestors only for the first/uppermost namespace of the class, so we
- # need to enable the #const_get inherit paramenter only when we are searching in Kernel scope
+ # need to enable the #const_get inherit parameter only when we are searching in Kernel scope
# (see COOK-4117).
parent = ancestors.inject(Kernel) { |scope, const_name| scope.const_get(const_name, scope === Kernel) }
child = parent.const_get(class_name, parent === Kernel)