This is an automated email from the ASF dual-hosted git repository. zhasheng pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/master by this push: new 1e607a9 Julia: fix filename quoting in docstring (#13894) 1e607a9 is described below commit 1e607a9e6c61176fa26aa0e5d79ed23e71f766fa Author: Iblis Lin <ib...@hs.ntnu.edu.tw> AuthorDate: Sat Jan 19 10:51:34 2019 +0800 Julia: fix filename quoting in docstring (#13894) Quoting filename with backticks to prevent markdown mis-rendering some of them with underscore. --- julia/src/util.jl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/julia/src/util.jl b/julia/src/util.jl index a836d3e..ae2e50b 100644 --- a/julia/src/util.jl +++ b/julia/src/util.jl @@ -183,15 +183,14 @@ end Extract the line of `Defined in ...` julia> mx._getdocdefine("sgd_update") -"Defined in src/operator/optimizer_op.cc:L53" -``` +"Defined in `src/operator/optimizer_op.cc:L53`" """ function _getdocdefine(name::String) op = _get_libmx_op_handle(name) str = _get_libmx_op_description(name, op)[1] lines = split(str, '\n') - for m ∈ match.(Ref(r"^Defined in .*$"), lines) - m != nothing && return m.match + for m ∈ match.(Ref(r"^Defined in ([\S]+)$"), lines) + m != nothing && return "Defined in `$(m.captures[1])`" end "" end