diff options
author | David Schmitt <david.schmitt@puppetlabs.com> | 2015-09-14 19:36:56 +0100 |
---|---|---|
committer | David Schmitt <david.schmitt@puppetlabs.com> | 2015-09-14 19:36:56 +0100 |
commit | 399ce03f6806b2226d5bcee52ab22235842c6e38 (patch) | |
tree | eaf57ee186a6380f153081066967b43c0a2787e3 /lib/puppet/parser/functions | |
parent | 0ea0e402283e6f0992d3ba74343728053bbbe785 (diff) | |
parent | 169f8af506d4cd8299e847236632fd8511928a03 (diff) |
Merge pull request #524 from binford2k/docs/intersection_truthiness
Clarify what an empty intersection looks like.
Diffstat (limited to 'lib/puppet/parser/functions')
-rw-r--r-- | lib/puppet/parser/functions/intersection.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/puppet/parser/functions/intersection.rb b/lib/puppet/parser/functions/intersection.rb index 48f02e9..bfbb4ba 100644 --- a/lib/puppet/parser/functions/intersection.rb +++ b/lib/puppet/parser/functions/intersection.rb @@ -4,13 +4,13 @@ module Puppet::Parser::Functions newfunction(:intersection, :type => :rvalue, :doc => <<-EOS -This function returns an array an intersection of two. +This function returns an array of the intersection of two. *Examples:* - intersection(["a","b","c"],["b","c","d"]) + intersection(["a","b","c"],["b","c","d"]) # returns ["b","c"] + intersection(["a","b","c"],[1,2,3,4]) # returns [] (true, when evaluated as a Boolean) -Would return: ["b","c"] EOS ) do |arguments| |