Update stdlib and concat to 6.1.0 both
[mirror/dsa-puppet.git] / 3rdparty / modules / stdlib / lib / puppet / parser / functions / unique.rb
index 301f6a4..c9eaa08 100644 (file)
@@ -3,23 +3,22 @@
 #
 module Puppet::Parser::Functions
   newfunction(:unique, :type => :rvalue, :doc => <<-DOC
-    This function will remove duplicates from strings and arrays.
+    @summary
+      This function will remove duplicates from strings and arrays.
 
-    *Examples:*
+    @return
+      String or array with duplicates removed
 
-        unique("aabbcc")
+    @example **Usage**
 
-    Will return:
+      unique("aabbcc")
+      Will return: abc
 
-        abc
+      You can also use this with arrays:
 
-    You can also use this with arrays:
+      unique(["a","a","b","b","c","c"])
+      This returns: ["a","b","c"]
 
-        unique(["a","a","b","b","c","c"])
-
-    This returns:
-
-        ["a","b","c"]
     DOC
              ) do |arguments|