Skip to content

Commit

Permalink
Clarify what an empty intersection looks like.
Browse files Browse the repository at this point in the history
  • Loading branch information
binford2k committed Sep 14, 2015
1 parent 0ea0e40 commit 169f8af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/puppet/parser/functions/intersection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|

Expand Down

0 comments on commit 169f8af

Please sign in to comment.