Hi,
I wonder if there is any standardized way of reporting function return in its docstring for something like this:
"""
test(x)
Test whether `x` is greater than 0.
# Arguments
- `x::Int64`: the number to test
# Returns
- `::Bool`: true, if `x` is greater than zero
"""
function test(x::Int64)
return x > 0
end
Since the function returns result and not a variable value, how should the returns look like?
- `::Bool`: true, if `x` is greater than zero
or
- `Bool`: true, if `x` is greater than zero
or
- `test::Bool`: true, if `x` is greater than zero
- this seems to make most sense to me
?
Adam