Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docstring contains trailing paren when splicing symbol into docstring #12821

Closed
jakebolewski opened this issue Aug 27, 2015 · 2 comments
Closed
Labels
docsystem The documentation building system

Comments

@jakebolewski
Copy link
Member

julia> for fn in (:foo, :bar)
       @eval begin
           """
           doc for $($fn)
           """
           ($fn)(x::Int) = x
       end
       end

help?> foo
search: foo floor ifloor pointer_from_objref OverflowError RoundFromZero FloatingPoint FileMonitor functionloc

  doc for foo)

help?> bar
search: bar baremodule SubArray GlobalRef clipboard BitArray backtrace find_library mmap_bitarray BitMatrix

  doc for bar)
@jakebolewski jakebolewski added the docsystem The documentation building system label Aug 27, 2015
@jakebolewski jakebolewski changed the title Docstring contains trailing paren when splicing in symbol to docstring Docstring contains trailing paren when splicing symbol into docstring Aug 27, 2015
@JeffBezanson
Copy link
Member

The example given doesn't run for me (gives an UndefVarError: foo not defined).

@jakebolewski
Copy link
Member Author

I don't think this is relevant now that #13006 is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docsystem The documentation building system
Projects
None yet
Development

No branches or pull requests

2 participants