(maint) Fix 'type_expr' typo

Fix a typo where we were calling 'pop_param.type_exp' when we meant
to call 'pop_param.type_expr'.
This commit is contained in:
Hailee Kenney 2016-03-29 11:36:21 -07:00
parent 015ce70f5a
commit 94e4efa6fa
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ class PuppetX::PuppetLabs::Strings::YARD::Handlers::HostClassHandler < PuppetX::
if Puppet::Pops::Types::TypeParser.instance_method(:interpret_any).arity == 2
param_type_info[pop_param.name] = tp.interpret_any(pop_param.type_expr, nil)
else
param_type_info[pop_param.name] = tp.interpret_any(pop_param.type_exp)
param_type_info[pop_param.name] = tp.interpret_any(pop_param.type_expr)
end
rescue Puppet::ParseError => e
# If the type could not be interpreted insert a prominent warning