Skip to content

Commit 2e5344f

Browse files
fix
1 parent bc553cf commit 2e5344f

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DocumentFunction"
22
uuid = "e1f3b4f0-2dc4-57d3-83f7-d4b7faf3b05b"
33
authors = ["Velimir V Vesselinov (monty) <[email protected]>"]
4-
version = "1.0.0"
4+
version = "1.1.0"
55

66
[compat]
77
julia = "1.5"

src/DocumentFunction.jl

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
__precompile__()
22

33
"""
4-
MADS: Model Analysis & Decision Support in Julia (Mads.jl v1.0) 2017
4+
DocumentFunction
55
6-
module DocumentFunction
7-
8-
http://mads.lanl.gov
96
https://github.com/madsjulia
107
118
Licensing: GPLv3: http://www.gnu.org/licenses/gpl-3.0.html
@@ -27,7 +24,7 @@ Return:
2724
"""
2825
function getfunctionmethods(f::Function)
2926
m = methods(f)
30-
return convert(Array{String, 1}, strip.(split(string(m.mt), "\n"))[2:end])
27+
return unique(sort(convert(Array{String, 1}, strip.(split(string(m.mt), "\n"))[2:end])))
3128
end
3229

3330
function documentfunction(f::Function; location::Bool=true, maintext::AbstractString="", argtext::Dict=Dict(), keytext::Dict=Dict())
@@ -110,7 +107,7 @@ Create function documentation
110107
111108
Arguments:
112109
113-
- `f`: function to be documented"
110+
- `f`: function to be documented
114111
115112
Keywords:
116113

0 commit comments

Comments
 (0)