RosettaCodeData/Task/Documentation/Swift/documentation.swift

10 lines
160 B
Swift
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
/**
Adds two numbers
:param: a an integer.
:param: b another integer.
:returns: the sum of a and b
*/
func add(a: Int, b: Int) -> Int {
return a + b
}