-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
?Symbol help message gives info on constructor, not on type #28647
Labels
docs
This change adds or pertains to documentation
good first issue
Indicates a good issue for first-time contributors to Julia
Comments
fredrikekre
added
docs
This change adds or pertains to documentation
good first issue
Indicates a good issue for first-time contributors to Julia
labels
Aug 14, 2018
The fix here is to add a docstring to the |
We can't have docstrings for both type and constructor right? So it needs to be moved from |
Why not?
|
Oh ok my bad, always thought they were shown from one docstring only
…On Fri, Aug 17, 2018, 09:41 Fredrik Ekre ***@***.***> wrote:
We can't have docstrings for both type and constructor right?
Why not?
julia> struct Foo x end
julia> """
Foo
The type.
"""
Foo
Foo
julia> """
Foo(x)
The constructor.
"""
Foo(x)
Foo
help?> Foo
Foo
The type.
─────────────────────────────────────────────────────────────────────
Foo(x)
The constructor.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#28647 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHRRsj85SCbaly2wWWSLBbdRFkkgo-roks5uRnOigaJpZM4V8alY>
.
|
I would like to contribute. How can I add the docstring? |
The doc for Symbol is in |
nikunj-taneja
added a commit
to nikunj-taneja/julia
that referenced
this issue
Jan 7, 2019
Added an additional docstring for the Symbol type to resolve issue to resolve Issue JuliaLang#28647 Now, ?Symbol will first display the type and then the constructor.
JeffBezanson
added a commit
that referenced
this issue
Jan 17, 2019
KristofferC
pushed a commit
that referenced
this issue
Feb 11, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
docs
This change adds or pertains to documentation
good first issue
Indicates a good issue for first-time contributors to Julia
Looking up help on a type should first explain what the type is and does before going into how to call the constructor. This is not the case for Symbol
The text was updated successfully, but these errors were encountered: