File: add.pp

package info (click to toggle)
puppet-strings 4.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,412 kB
  • sloc: ruby: 7,324; makefile: 12
file content (9 lines) | stat: -rw-r--r-- 278 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
# 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
}