Mercurial > repos > other > Puppet
diff modules/stdlib/lib/puppet/parser/functions/zip.rb @ 275:d9352a684e62
Mass update of modules to remove deprecation warnings
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 26 Jan 2020 11:36:07 +0000 |
parents | c42fb28cff86 |
children | adf6fe9bbc17 |
line wrap: on
line diff
--- a/modules/stdlib/lib/puppet/parser/functions/zip.rb Sat Jan 04 11:42:45 2020 +0000 +++ b/modules/stdlib/lib/puppet/parser/functions/zip.rb Sun Jan 26 11:36:07 2020 +0000 @@ -3,15 +3,15 @@ # module Puppet::Parser::Functions newfunction(:zip, :type => :rvalue, :doc => <<-DOC - Takes one element from first array and merges corresponding elements from second array. This generates a sequence of n-element arrays, where n is one more than the count of arguments. - - *Example:* + @summary + Takes one element from first array and merges corresponding elements from second array. - zip(['1','2','3'],['4','5','6']) + @return + This generates a sequence of n-element arrays, where n is one more than the count of arguments. - Would result in: - - ["1", "4"], ["2", "5"], ["3", "6"] + @example + zip(['1','2','3'],['4','5','6']) + Would result in: ["1", "4"], ["2", "5"], ["3", "6"] DOC ) do |arguments|