diff options
author | Reuben Garrett <RubyTuesdayDONO@users.noreply.github.com> | 2019-07-11 23:20:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-11 23:20:23 -0500 |
commit | 242adc15a5dd74f7315d08b760bb11aadea2db3b (patch) | |
tree | 99528834f324a4dcfc4b1b172f9c52827e4b5401 | |
parent | 6bbf42b0ff11eabdb72067e78e4101ad93820b71 (diff) | |
download | chef-242adc15a5dd74f7315d08b760bb11aadea2db3b.tar.gz |
Fix RDoc copy-pasta in Chef::Mixin::ParamsValidate#validate
Signed-off-by: Reuben Garrett <ruby@rubydono.net>
The RDoc for `Chef::Mixin::ParamsValidate#validate`
appears to have inadvertently copied the (helpful)
inline pseudocode of the `:is` option to the `:equal_to` option
in commit 28f17b36a9d041be8ed50e20ae06fa5f5ea1fb38.
Obvious fix.
-rw-r--r-- | lib/chef/mixin/params_validate.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/mixin/params_validate.rb b/lib/chef/mixin/params_validate.rb index 0bf3543fbf..ad7eddb48a 100644 --- a/lib/chef/mixin/params_validate.rb +++ b/lib/chef/mixin/params_validate.rb @@ -42,7 +42,7 @@ class Chef # (`opts[:is].any? { |v| v === value }`). (See #_pv_is.) # @option opts [Object,Array] :equal_to An object, or list # of objects, that must be equal to the value using Ruby's `==` - # operator (`opts[:is].any? { |v| v == value }`) (See #_pv_equal_to.) + # operator (`opts[:equal_to].any? { |v| v == value }`) (See #_pv_equal_to.) # @option opts [Regexp,Array<Regexp>] :regex An object, or # list of objects, that must match the value with `regex.match(value)`. # (See #_pv_regex) |