Swift Forums
You should be able to label a 1-tuple return value as a way to document the return value.
Evolution
Discussion
Amir_Michail
(Amir Michail)
December 4, 2015, 12:35am
1
For example:
func f(n:Int) -> (errorValue:Int) {
...
}
print(f(5).errorValue)