puppet-strings/spec/fixtures/acceptance/modules/test/functions/add.pp

10 lines
278 B
ObjectPascal
Raw Normal View History

# Adds two integers together.
# @param x The first integer to add.
# @param y The second integer to add.
# @return [Integer] Returns the sum of x and y.
# @example Example of adding two integers.
# test::add(1, 2) => 3
function test::add(Integer $x, Integer $y) {
$x + $y
}