Skip to content

Commit 399ce03

Browse files
committed
Merge pull request #524 from binford2k/docs/intersection_truthiness
Clarify what an empty intersection looks like.
2 parents 0ea0e40 + 169f8af commit 399ce03

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/puppet/parser/functions/intersection.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
module Puppet::Parser::Functions
66
newfunction(:intersection, :type => :rvalue, :doc => <<-EOS
7-
This function returns an array an intersection of two.
7+
This function returns an array of the intersection of two.
88
99
*Examples:*
1010
11-
intersection(["a","b","c"],["b","c","d"])
11+
intersection(["a","b","c"],["b","c","d"]) # returns ["b","c"]
12+
intersection(["a","b","c"],[1,2,3,4]) # returns [] (true, when evaluated as a Boolean)
1213
13-
Would return: ["b","c"]
1414
EOS
1515
) do |arguments|
1616

0 commit comments

Comments
 (0)