Add consistent *Type* information
Remove trailing whitespace Two functions had not been given any *Type* information. This commit fixes that.
This commit is contained in:
parent
da0e063af6
commit
ba345abfb7
1 changed files with 5 additions and 3 deletions
|
@ -532,10 +532,10 @@ From a list of values, returns the first value that is not undefined or an empty
|
||||||
|
|
||||||
#### `prefix`
|
#### `prefix`
|
||||||
|
|
||||||
Applies a prefix to all elements in an array, or to the keys in a hash.
|
Applies a prefix to all elements in an array, or to the keys in a hash.
|
||||||
For example:
|
For example:
|
||||||
* `prefix(['a','b','c'], 'p')` returns ['pa','pb','pc']
|
* `prefix(['a','b','c'], 'p')` returns ['pa','pb','pc']
|
||||||
* `prefix({'a'=>'b','b'=>'c','c'=>'d'}, 'p')` returns {'pa'=>'b','pb'=>'c','pc'=>'d'}.
|
* `prefix({'a'=>'b','b'=>'c','c'=>'d'}, 'p')` returns {'pa'=>'b','pb'=>'c','pc'=>'d'}.
|
||||||
|
|
||||||
*Type*: rvalue.
|
*Type*: rvalue.
|
||||||
|
|
||||||
|
@ -573,6 +573,8 @@ The second argument to this function is which type of hash to use. It will be co
|
||||||
|
|
||||||
The third argument to this function is the salt to use.
|
The third argument to this function is the salt to use.
|
||||||
|
|
||||||
|
*Type*: rvalue.
|
||||||
|
|
||||||
**Note:** this uses the Puppet master's implementation of crypt(3). If your environment contains several different operating systems, ensure that they are compatible before using this function.
|
**Note:** this uses the Puppet master's implementation of crypt(3). If your environment contains several different operating systems, ensure that they are compatible before using this function.
|
||||||
|
|
||||||
#### `range`
|
#### `range`
|
||||||
|
@ -704,7 +706,7 @@ Returns the literal type when passed a value. Requires the new parser. Useful fo
|
||||||
|
|
||||||
#### `union`
|
#### `union`
|
||||||
|
|
||||||
Returns a union of two or more arrays, without duplicates. For example, `union(["a","b","c"],["b","c","d"])` returns ["a","b","c","d"].
|
Returns a union of two or more arrays, without duplicates. For example, `union(["a","b","c"],["b","c","d"])` returns ["a","b","c","d"]. *Type*: rvalue.
|
||||||
|
|
||||||
#### `unique`
|
#### `unique`
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue